Change Placeholder Text using jQuery

后端 未结 13 1272
-上瘾入骨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:55

    $(document).ready(function(){ 
         $("input[type=search]").attr("placeholder","this is a test");
    });
    

提交回复
热议问题