Being here doing my sites in php/mysql/html/css
and learning more and more about jQuery
I got into the situation where I should use the same code for two ids
distinct.
How do I need to use the same code in two different places to run the same script as in this case is to open and close a slideToggle on a top form? So I know jQuery gives dick when we duplicate an id on the same page because, by logic, id is identity, it's unique.
jQuery(function(){
jQuery("#botaodeacao").click(function(e) {
jQuery("#oformulario").slideToggle(1500);
});
jQuery("#botaodeacao2").click(function(e) {
jQuery("#oformulario").slideToggle(1500);
});
e.preventDefault();
});
Alright, we can do it for classes but if you need to do with ids
...