1
I need to run a javascript, plus I would like to do this using the ID of the button that clicked,
Example:
$(Document). ready(Function(){
$("p").click(function(){
alert("estou usando o P.");
});
$('teste').on('click',function(){
//eu precisa de alguma coisa assim
alert("estou usando o id.");
});
});
How to use id reference?.
In this example only works when using the "P tag"
Thanks
reformulates the question that was confused.
– lcssanches
I’ll do it now
– Harry