Feature Detect Placeholder to Adjust jQuery Mobile Layout

added by elijahmanor
2/9/2011 8:30:09 AM

0 Kicks, 99 Views

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.


0 comments