var data = $("span").data();
alert(data.ngBind);
// или
alert($("span").data('ngBind'););
$(function(){
if( $("#unive").prop("checked") )
{ $('.autoblock #unive').addClass('active'); }
else {$('.autoblock #unive').removeClass('active'); }
if( $("#econom").prop("checked") )
{ $('.autoblock #econom').addClass('active'); }
else { $('.autoblock #econom').removeClass('active'); }
if( $("#mini").prop("checked") )
{ $('.autoblock #mini').addClass('active'); }
else { $('.autoblock #mini').removeClass('active'); }
});
function checkRadioButtons()
{
if( $("#unive").prop("checked") )
{ $('.autoblock #unive').addClass('active'); }
else {$('.autoblock #unive').removeClass('active'); }
if( $("#econom").prop("checked") )
{ $('.autoblock #econom').addClass('active'); }
else { $('.autoblock #econom').removeClass('active'); }
if( $("#mini").prop("checked") )
{ $('.autoblock #mini').addClass('active'); }
else { $('.autoblock #mini').removeClass('active'); }
}
$(function(){
checkRadioButtons();
});
$(".checkbox").change( function(){
checkRadioButtons();
});
<a href="test.html?btvalue=lalala" class="button" style="background: #DC3522">#1</a>
function GetURLParameter(sParam)
{
var sPageURL = window.location.search.substring(1);
var sURLVariables = sPageURL.split('&');
for (var i = 0; i < sURLVariables.length; i++)
{
var sParameterName = sURLVariables[i].split('=');
if (sParameterName[0] == sParam)
{
return sParameterName[1];
}
}
}
$(function () {
$('#myinput').val(GetURLParameter('btvalue'));
});
<input type="text" id="myinput" />
var g = document.createElement('script');
var s = document.getElementsByTagName('script')[0];
g.text = "document.body.style.backgroundColor = 'white';"
s.parentNode.insertBefore(g, s);
<code lang="php">
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
if (isset($_POST['site'])) {$site = '<b>Сайт:</b> '.$_POST['site'];}
if (isset($_POST['geo'])) {$geo = '<b>Геграфия рекламы:</b> '.$_POST['geo'];}
if (isset($_POST['phone'])) {$phone = '<b>Телефон:</b> '.$_POST['phone'];}
if (isset($_POST['email'])) {$email = '<b>email:</b> '.$_POST['email'];}
if (isset($_POST['formData'])) {$formData = $_POST['formData'];}
$to = "mail@gmail.com";
$sendfrom = "mail@gmail.com";
$headers = "From: " . strip_tags($sendfrom) . "\r\n";
$headers .= "Reply-To: ". strip_tags($sendfrom) . "\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html;charset=utf-8 \r\n";
$subject = "$formData";
$message = "$formData
$site
$geo
$email
$phone";
$send = mail ($to, $subject, $message, $headers);
if ($send == 'true')
{
echo '<center>
Спасибо за отправку вашего сообщения!
</center>';
}
else
{
echo '<center>
<b>Ошибка. Сообщение не отправлено!</b>
</center>';
}
} else {
http_response_code(403);
echo "Попробуйте еще раз";
}?>
</code>
<script defer src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script defer type="application/javascript" src="js/libs.min.js"></script>
<script defer type="application/javascript" src="js/js.js"></script>
function PrintElem(elem)
{
Popup($(elem).html());
}
function Popup(data)
{
var mywindow = window.open('', 'table', 'height=1000,width=1000');
mywindow.document.write('<html><head>');
mywindow.document.write('<link rel="stylesheet" type="text/css" media="print" href="/project/print.css">');
mywindow.document.write('</head><body ><table>');
mywindow.document.write(data);
mywindow.document.write('</table></body></html>');
mywindow.document.print;
mywindow.document.close();
mywindow.focus();
mywindow.addEventListener('load', function(){
mywindow.print();
mywindow.close();
}, false);
}
div.innerHTML = "<input name=\"name[]" + curFieldNameId + "\" type=\"text\" id=\"date\" /> <a onclick=\"return deleteField(this)\" href=\"#\">[x]</a>";
div.innerHTML = "<input name=\"name[]" + curFieldNameId + "\" type=\"text\" id=\"date" + curFieldNameId + "\" /> <a onclick=\"return deleteField(this)\" href=\"#\">[x]</a>";
document.getElementById("parentId").appendChild(div);
$("#date"+curFieldNameId ).mask("99-99-9999");