Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Add Click events to multiple classes.

$(".people, .custom").on("click",clear);
function clear(){
    if ($(this).val() != "")
        $(this).val("");
}
//This clears respective class elements when clicked
 
PREVIOUS NEXT
Tagged: #Add #Click #events #multiple
ADD COMMENT
Topic
Name
5+3 =