All posts tagged html5

jQuery : Getting a selected element’s outer HTML

jquery-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

html5-placeholder-syntax

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 →