i got this jquery script, it puts placeholder "+" in my search input, and probblem is that, now every input got "+" placeholder on my website,
how to add only particulary class to this js code:
$( document ).ready(function() {
$('input').on('focus',function(){
$(this).attr('placeholder',"");
});
$('input').on('blur',function(){
$(this).attr('placeholder',"+");
});
});
addClasswith your class in$(this)? jQuery addClass$("input.className")Archersaid you can select something like this$("input.myClass[type=text]")