Link to home
Start Free TrialLog in
Avatar of error77
error77

asked on

JQuery Mobile Datebox onload popup

Hi all,

I am using JQuery Mobile Datebox plugin.

More details here: http://dev.jtsage.com/jQM-DateBox/

You can popup the calendar by clicking on the button ... what I need to do is open the popup on page load instead.

Is this possible please?

Thanks
Avatar of dr_Pitter
dr_Pitter

Hi,

if the plugin you're using doesn't provide an option to open it programmatically, you could try to trigger an click-event on the button on page-load

$(function(){
  var button = $(<button-selector>);
  button.click();
});
ASKER CERTIFIED SOLUTION
Avatar of Vampireofdarkness
Vampireofdarkness
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Forgot to put on there that the file is jquery.mobile.datebox.js that you need to edit.