jQuery set element style to the :hover css style

June 3, 2014

jQuery has .hover function which will freeze the hover effect. It’d be better to just give that state another class itself in the CSS and then use your method to add that class. You may keep the id of the div and control the css changes using class

jQuery how to know if div with specific id exists

June 3, 2014

To check if the div with specific id or class exist, you can use .length after the selector to see if it matched any elements, like this:

jQuery get parameter of url after #hash tags

May 21, 2014

For url that is also document’s location, use below code to find if #hash tag exist To get the url parameters, simply use code like

jquery change css background image

May 20, 2014

There is two ways of achieve the css set background image using jquery. First: Second: The first method can set multiple css at one time. While the second method only one css per time.

jQuery javascript make an input readonly

May 9, 2014

To make an input readonly, simply use .prop To enable the input

jQuery UI Tooltip

May 9, 2014

Tooltip is veryuseful for forms,It is used to show some additional information about input fields. HTML Codes

jQuery checked a radio button

May 7, 2014

To check radio button, you may use .attr To remove radio button checked, view this post

jQuery remove radio checked

May 7, 2014

To uncheck radio button, you may use .removeAttr or .attr Or using .removeAttr To checked a radio button, view this post

Javascript how to alert view array or object

April 14, 2014

Easiest way is using .toSource() alert(arrayObj.toSource());

Remove CSS attribute with jQuery

April 14, 2014

Example to remove a style attribute from html code