Feature Detect Placeholder to Adjust jQuery Mobile Layout(www.elijahmanor.com)
submitted by
elijahmanor(1448) 1 year, 3 months ago
So, I decided to use a Progressive Enhancement approach to this problem using the Modernizer JavaScript library. I wrote some JavaScript to detect if the browser supports the placeholder HTML5 attribute and if it does, then I hide and take the text from the label element and then push the value into the input element's placeholder attribute.
|category: jQuery
|Views: 8
tags:
jQuery another
Everyones tags:
Your Tags: