All posts tagged jQuery

jQuery : Getting a selected element’s outer HTML

The .html() function of jQuery only lets you get the inner html of a selector, but sometimes you want the selected object as well, here is a quick jQuery snippet to get the complete html of a selector.
Continue Reading →

Styling HTML5 Placeholder with CSS or jQuery

A quick tip to style the recently introduced HTML5 “Placeholder” attribute for input text and textarea elements via CSS or jQuery. The methods discussed have been tested successfully in all major browsers.
Continue Reading →