.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Code Snippets >> JQuery >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

How to get and set the text of Checkbox with jQuery

Posted By:Rajshree       Posted Date: October 28, 2010    Points: 15    Category: JQuery    URL: http://www.dotnetspark.com  

To get and Set the text of asp.net Checkbox is different from that of HTML Checkbox

To Set the Text of Checkbox:

 $('input:checkbox[id$=chkall]').next().text('Uncheck All');

To Get the Text of Checkbox:

 var chkval= $('input:checkbox[id$=chkall]').next().text();


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend