Hover with "write less, do more"
Hello!
I'm new to jQuery and i have something like this:
- $(document).ready(function() {
- $('#open').hover(function(){
- $('#nav_ul').slideDown(300);
- },function(){
- $('#nav_ul').hide();
- });
- });
It all works fine but...
The problem is that i have several #open and #nav_ul elements, and i don't want to write different CSS id's like "#open1" "#open2" etc.
I'd like to do the thing with just one CSS id like on my code.
Could anyone help me please?
Regards