I am using a jQuery placeholder plugin(https://github.com/danielstocks/jQuery-Placeholder). I need to change the placeholder text with the change in dropdown menu. But it is
$(document).ready(function(){ $('form').find("input[type=search]").each(function(ev) { $(this).attr("placeholder", "Search Whatever you want"); }); });