Archive for February, 2012

How to write IE Version specific jQuery code

Well, making code browser compatible is always a challenge and presence of various browsers makes life difficult for developers. In this post, you will find the way to code for IE specific version. jQuery provides .browser property which returns the browser information. Below jQuery code checks for IE version 7 only. $(document).ready(function(){ if(jQuery.browser.msie && jQuery.browser.version.substring(0, […]
Read the rest of this entry »

Common Dropdown operation (Get, Set, Add, Remove) using jQuery

DropDown list is a very basic and common control and You might be using either ASP.NET Dropdown list or normal html dropdown list in your project. In this post, I have put together the code examples for all kind of dropdown operation. For example, to get selected value from dropdown, for to set value in […]
Read the rest of this entry »

Get Radio Button value using jQuery

Here’s small piece of code to get the value of a checked or selected radio button out of a group of radio buttons. var selValue = $('input[name=rbnNumber]:checked').val(); In above code, rbnNumber is name of the radio group. Demo HTML Code: jQuery Code: Result: See Complete Code You can also get the value of individual radio […]
Read the rest of this entry »

Useful jQuery Text Editor Plugins

Text editors allow users to edit and enter text within a web browser. Rich-text editors are essentially web-based WYSIWYG ("what you see is what you get") editors. In this post, I have put together a collection of some of the best, useful and free jQuery Text Editor plugins which are very user friendly and can […]
Read the rest of this entry »

Get checkbox status using jQuery

Below single line of code will provide the status of checkbox using jQuery. It checks whether the checked is checked or not using jQuery and will return 1 or 0. var isChecked = $('#chkSelect').attr('checked')?true:false; I have noticed that on many website it is written that 'checked' attribute will return true or false, but this is […]
Read the rest of this entry »

How to check element visible or hidden using jQuery

Below is a simple piece of jQuery code which checks the visibility of element using jQuery. jQuery provides "visible" selector which can be used to check the visibility. Earlier I had posted about How to check if element is empty, Difference between empty() vs remove() and Don't use jQuery.size() to count number of element. And […]
Read the rest of this entry »

Responsive Menu
Add more content here...