I have tired a few placeholder plugins to get it to work in IE. Currently I’m using http://widgetulous.com/placeholderjs/. This works in IE8 & 9 but not IE7. It throws a SCRIPT1028: Expected identifier, string or number
placeholder.js, line 182 character 5
SCRIPT5009: ‘Placeholder’ is undefined
csr-form.html, line 72 character 3 – This is where I call the placeholder.js via:
$(function(){
// Placeholder
Placeholder.init();
});
Does anyone know how to get this to work in IE7 or can someone suggest another plugin that works in IE7?
UPDATED
Here is the fiddle,
http://jsfiddle.net/clintongreen/NLWRL/
Thanks
ah, your problem is a trailing comma in a hash like this
edit: yep i see it, your
utilshash in that fiddle has a trailing comma after it.here is the fix:
http://jsfiddle.net/NLWRL/1/
not tested in ie7, there might be more trailing commas hiding in there for you to find
by the way when you see
Expected identifier, string or numberin ie7, 9/10 times its a trailing comma.