Tag Archives: ghosttype

Ghostype input Placeholder for search text fields using jQuery

>Placeholder Demo Ghostpe Demo $(document).ready(function(){ var search = “#home-search”; var chars = $(search).attr(‘placeholder’).split(”); $.each(chars, function(i, v){ setTimeout(function() { $(search).val((chars.slice(0, i+1).join(”))); }, 100*i); }); });jQuery placeholder plugin can be used to display default text inside input text fields.HTML5 introduced type search … Continue reading

Posted in Ruby on Rails | Tagged , | Leave a comment