JQuery Archives - Page 2 of 2 - All Things DotNetAll Things DotNet
  • Subscribe to this RSS feed
  • Receive updates as soon as they are posted.

JQuery Category

January 7 , 2013 | | In: ASP.Net, ASP.Net Tips, JQuery, MVC3

Change CSS Attributes with JQuery

You can easily use JQuery to change the CSS of HTML tags. Of course, you can either change them inside a function, or outside a function, inside the Script Tag. Here’s a way inside an ‘onblur’ function: $(“#MyTextBox).blur(function () { $(this).css(“background-color”, “red”); } All you’d need to do inside a Script Tag (which would make […]

December 21 , 2012 | | In: JQuery

Assess the ‘checked’ Property of a Checkbox

Let’s say you have a checkbox with the name ‘MyCheckBox”. Using JQuery, here’s a function you can use to be able to tell whether or not it’s checked: $(document).ready(function () { $(“#MyCheckBox”).click(function () { var chk=this.checked; if (chk==true) {alert(“Mycheckbox is checked”);} else {alert(“Mycheckbox is NOT checked”);} }); });

All Things DotNet Discussed – Winforms/ASP.Net/SharePoint/WPF

If you find this site helpful,
please donate to help keep it online and free

Code 'n' Sprox   DreamTemplate - Web Templates

Follow us on Twitter

Follow AllThingsDotNet on Twitter

Test - The Name: 6936