1

I've checked my code and it works fine but for some reason I cannot open Dialog once it was closed. Any advice on why is that?

The code is here - http://jsfiddle.net/EA2Dg/1/

2
  • Is it any internal Drupal thing or something?
    – Vonder
    Jul 12, 2011 at 12:35
  • 1
    where do you have this javascript?
    – Laxman13
    Jul 12, 2011 at 17:10

1 Answer 1

0

Why don't you use "click function to open the dialog, it should work

HTML

<div id="dialog" title="Basic dialog">
    <p>This is an animated dialog which is useful for displaying information. The     dialog window can be moved, resized and closed with the 'x' icon.</p>
</div>

<button id="opener">Open Dialog</button>

JQuery:

<script>
$(function(){
    $("#opener").click(function(){
        $("#dialog").dialog();
    });
});
</script>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.