RobertP Posted April 17, 2012 Share Posted April 17, 2012 my login button, and ALL input[type=submit] are not showing their 'value', this issue is only in IE, even IE9! http://64.229.93.2/index.php?action=login i am stuck on this isue, at first i though it was the font i was using for the buttons, but its not that :S Quote Link to comment Share on other sites More sharing options...
requinix Posted April 17, 2012 Share Posted April 17, 2012 Look in scripts.js:246-259: $("input,textarea").each(function(){ placeholder = $(this).attr("placeholder"); if(placeholder=="undefined"||placeholder==false||$.browser.msie=="undefined"||!$.browser.msie) return; $(this).val($(this).attr("placeholder")); $(this).focus(function(){ if($(this).val()==$(this).attr("placeholder")) $(this).val(""); }); $(this).blur(function(){ if($(this).val()=="") $(this).val($(this).attr("placeholder")); }); }); Debug that "placeholder" variable... Quote Link to comment Share on other sites More sharing options...
RobertP Posted April 17, 2012 Author Share Posted April 17, 2012 ok, thank you so much, but, now how do i add placeholder support to ie? EDIT:: never mind, i fixed my selector LOL $("input[type=text],textarea").each(function(){ placeholder = $(this).attr("placeholder"); if(placeholder=="undefined"||placeholder==false||$.browser.msie=="undefined"||!$.browser.msie) return; $(this).val($(this).attr("placeholder")); $(this).focus(function(){ if($(this).val()==$(this).attr("placeholder")) $(this).val(""); }); $(this).blur(function(){ if($(this).val()=="") $(this).val($(this).attr("placeholder")); }); }); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.