views:

2093

answers:

2

I have developed a PopupMenu using a jQuery plugin.

When the HTML button is clicked the PopupMenu should appear.

Is it possible to do this instead when the page refreshes?
How would I do this in jQuery?

$(document).ready(function() {
    $('area').bind("click",function(e){
        //popupcode
    });
});
+2  A: 

Wouldn't that do?

$(document).ready(function() {
              $('area').bind("click",function(e){

                      //popupcode
                });
              //popupcode
       });
kgiannakakis
Yes I got the Technic
venkatachalam
+2  A: 

Add

$('area').click();

to fire the event after the binding :)

Julian Aubourg