Search This Blog

Showing posts with label jquery. Show all posts
Showing posts with label jquery. Show all posts

Tuesday, March 6, 2012

Change color of table column using jquery

If the table id is punchData and if you are changing second column color
$("#punchData > tbody > tr > td:nth-child(2)").css("background","#F5D0A9");

Thursday, January 12, 2012

Select a lable using "for" in JQuery

Jquery selector for the label of a checkbox $("label[for=genTaxRateOrder]").

Monday, November 28, 2011

Add And Update JSON Array Using Jquery

    

Sunday, September 18, 2011

JQuery Check if element is checked and make it checked

if($('#cbxEmployeeFamily_'+planId).is(':checked')){
             
             $('#cbxEmployeeFamily_'+planId).attr('checked', true);
         }

Thursday, October 7, 2010

Find an element Id which match a pattern in jquery

Using jquery its possible to find an element that matches a specific pattern. This code will find each input Id and check if its greater than 24

           $("input[id^=duration_]").each(function() {

                if($(this).val()>24){
                    alert('Duration should be less than 24');
                     returnValue = false;
                }

            });
more examples