Change Placeholder Text using jQuery

后端 未结 13 1281
-上瘾入骨i
-上瘾入骨i 2020-12-04 06:17

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

13条回答
  •  情书的邮戳
    2020-12-04 06:46

    $(document).ready(function(){ 
      $('form').find("input[type=search]").each(function(ev)
      {
         $(this).attr("placeholder", "Search Whatever you want");
      });
    });
    

提交回复
热议问题