JQuery check if class exist You want to perform some action based on if is there exist a class for given element. .hasClass gives Boolean value true if class exist on that element. JQuery hasClass example <html> <head> <title>Jquery Get TextBox Value</title> <script src=http://ajax.googl... [More]

Tags:

Jquery

JQuery Change Div background Color and Text Color On Click To change background color of div use $("#divId").css("background-color","red"); and to change text color of div elemtn use $("#divId").css("color","red");. You can copy the example into notepad and run it in browser. [More]

Tags:

Jquery

How to get Jquery selected option Here we will see how to get Selected value or Selected Text of dropdownlist using JQuery. To get selected text use $("#dropdownlistID").find(":selected").text() and to get selected value use $("#dropdownlistID").find(":selected").val(); [More]
Checkbox Check all Gridview     Below code will let you select all checkboxes contained inside the page on click of header checkbox. Let's see how it works HTML Code: <div> <input type="checkbox" id="headercheckbox" class =&quo... [More]

Tags:

Author

My name is Satalaj, but people call me Sat. Here is my homepage: . I live in Pune, PN and work as a Software Engineer. I'm former MVP in ASP.net year 2010.
Disclaimer: Views or opinion expressed here are my personal research and it has nothing to do with my employer. You are free to use the code, ideas/hints in your projects. However, you should not copy and paste my original content to other web sites. Feel free to copy or extend the code.
If you want to fight with me, this website is not for you.
 

I'm Satalaj.