var params = {
odin: $('input[name="1"]').val(),
dva: $('input[name="2"]').val(),
options: $('input[name="options[name]"]').serialize()
}
var options = [];
$('input[name="options"]').each(function() {
options.push($(this).val());
});
var params = {
odin: $('input[name="1"]').val(),
dva: $('input[name="2"]').val(),
options: options
}
<?php
foreach($care as $k => $v){
$source .= "{value: $v['value'], text: '{$v['text']}'}";
if(!count($k)-1) $source .= ",";
}
?>
source: [<?php echo $source;?>]
var obj = $.parseJSON('{"reply":"Файл загружен","img":"20151002172921131.jpg"}');
alert(obj.reply);
$clean_text = emoji_docomo_to_unified($_POST['wall_message']);
$html = emoji_unified_to_html($clean_text);
<script>
$(document).ready(function() {
$('.player-wrap').ttabs();
$('.actors a').attr("itemprop", "actor");
});
</script>
<script type="text/javascript" src="/engine/classes/min/index.php?charset=windows-1251&f=/templates/iPult/js/owl-carousel/owl.carousel.min.js,/templates/iPult/js/owl-carousel/owl.carousel.js,/templates/iPult/js/libs.js&7"></script>
if (data.status === 'success') {
timer_pole( data.id, data.id, 0);
}
<input type="text" id="sum">
<div id="info" style="display:none">asdasdasd</div>
$("#sum").keyup(function(){
var $sum = $("#sum");
if(parseInt($sum.val(), 10) >= 100000){
$("#info").show();
}
});
<form>
<input type="text" name="ololo0">
<input type="text" name="ololo1">
<input type="text" name="ololo2">
<input type="text" name="ololo3">
</form>
$("input[type=text]").each(function(k, v){
if (k == 2){
$(v).val("123");
}
});
<script type="text/javascript" src="scripts/jquery-1.11.1.min.js"></script>
$(".img").hover(function () {
$(this).parent().closest('.parent').addClass('hover');
});
$('.parent').on('mouseleave', function () {
$(this).removeClass('hover');
});