jQuery get which radio is selected

August 22, 2014

Use the :checked selector along with the radio selector. With form id, can do this Without form is, it will still work:

jQuery add attribute to html element and remove

July 25, 2014

You can add attributes using attr like below: To remove: However, for DOM properties like checked, disabled and readonly, the proper way to do this (as of JQuery 1.6) is to use prop. To remove:

jQuery get id of last div inside a div

April 8, 2014

The correct way to get the id of the last child div inside parent container using jQuery: Or

CSS add text on top of image

March 28, 2014

Putting the image in as a background image of the wrapping div would be easier, but to add text on top of image or background image, position absolute needed.

CSS vertical align center a div inside another div

February 27, 2014

Vertical align middle works by using display: table-cell on parent element and display: inline-block on the child.

CSS to prevent youtube video overlaps div in IE

February 14, 2014

The overlaps doesn’t work with z-index, the only way is put in the two parameters “&wmode”: Example: