Archive for the ‘Jquery Code’ Category

Exmaple --


//data fetch with ajax //

<li value="delhi">Delhi</li>

<li value="noida">Noida</li>

<li value="newdelhi">New Delhi</li>

//data fetch with ajax //


$("#filter_location").on('click', 'li', function() {


<input type="checkbox" name="services[]" >Text 1<br>
<input type="checkbox" name="services[]" >Text 2<br>
<input type="checkbox" name="services[]" >Text 3<br>

$("#submitted").click(function() { 
 if( $('input[name="services[]"]:checked').length == 0 )
    $('#services').prop('required',true); //for html5 ...add required attributes

update uniform.update() function for checbox checked…..

Looking at their docs, they have a $.uniform.update feature to refresh a “uniformed” element.


$("body").on("click", "#check1", function () {
    var two = $("#check2").attr("checked", this.checked);

you need to call $.uniform.update()