Skip to content Skip to sidebar Skip to footer

True Placeholder Text Fix For Old Browsers?

I would like to use jQuery code to simulate placeholder text for old browsers. I have found a number that are great candidates, and work well. However, one issue is that the soluti

Solution 1:

I use jquery placeholder . U should try it

https://github.com/prantor19/jquery-placeholder

Solution 2:

Check if placeholder value is present before form is send and remove it:

$('form').submit(function(){
   if($('#someinput').val() == 'placeholder value') {
     $('#someinput').val('');
   }
});

Solution 3:

Just off the top of my head, what about something like this (jsfiddle).

Post a Comment for "True Placeholder Text Fix For Old Browsers?"