I have a custom dialog box, now I need to position the custom dialog box to a desired position how can i do that in an .html.erb file?
Share
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.
With the widget .dialog() jQuery UI provides an option to change the position of your dialog box.
Using it is as simple as :
$("#selector").dialog({position:"center"}); // center is default valueor later with
$("#selector").dialog("option","position","center");Possible values :