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);
<?php
function transLit($text){
$alfavit = array('а'=>'a', 'б'=>'b', 'в'=>'v', 'г'=>'g', 'д'=>'d', 'е'=>'ye', 'ё'=>'yo', 'ж'=>'zh', 'з'=>'z', 'и'=>'i', 'к'=>'k', 'л'=>'l','м'=>'m', 'н'=>'n','о'=>'o', 'п'=>'p','р'=>'r', 'с'=>'s', 'т'=>'t', 'у'=>'u','ф'=>'f','х'=>'kh', 'ц'=>'ts', 'ч'=>'ch', 'ш'=>'sh','щ'=>'tch', 'ъ'=>'"', 'ы'=>'y', 'ь'=>'`', 'э'=>'eh', 'ю'=>'yu', 'я'=>'ya');
$text_a = preg_split('//u', $text, -1, PREG_SPLIT_NO_EMPTY);
$text = '';
foreach($text_a as $val) {
$text .= (isset($alfavit[$val])) ? $alfavit[$val] : $val;
}
return $text;
}
$text = "Привет мир! Как дела?";
echo transLit($text);
?>
Пrivyet mir! Кak dyela?