skip to Main Content

jQuery attr() Method add html tag

I have a search input tag, and I wanted to set a placeholder. In place holder I need to keep a magnify icon, how to do it in jquery? below is the code I tried $('.gridjs-head .gridjs-search .gridjs-search-input').attr("placeholder", "<i class='mdi…

VIEW QUESTION
Back To Top
Search