Change Placeholder Text using jQuery

后端 未结 13 1233
-上瘾入骨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 07:02

    You can use following code to update a placeholder by id:

    $("#serMemtb").attr("placeholder", "Type a Location").val("").focus().blur();
    

提交回复
热议问题