What are event and UI parameters in jQuery Dialog? Can I get a mouse position using them?
$( ".selector" ).dialog({
open: function(event, ui) { ... }
});
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
eventparameter is the DOM Event object. Theuiparameter is typically a hash; its properties depend on the event being raised.For the dialog
openevent, both arguments appear to be null. For other events, such asdragStart,draganddragStop,uiwill contain the current position and offset: