How to open a Dialogue Box On Page Load

前端 未结 3 1011
粉色の甜心
粉色の甜心 2021-01-26 09:51

I am trying to open a Dialogue Box On page load of jquery Mobile screen .Right now i am able to open Dialogue Box on button Click .I want the Dialogue box to get pop up automati

3条回答
  •  南笙
    南笙 (楼主)
    2021-01-26 10:43

    function onLoad() 
    { 
      openDialogBox();  
      document.addEventListener("deviceready", onDeviceReady, false);
      $("#searchby_chooser_ok_button").bind ("click", searchByCriteria); 
    
     if (typeof Contact === "undefined") {
        getElement("contacts_list").innerHTML = "

    The Cordova Contacts API is inaccessible

    "; } } function openDialogBox() { $("#simplestring").simpledialog({ 'mode' : 'string', 'prompt' : 'Please Enter Your Mobile No.', 'buttons' : { 'OK': { click: function () { $('#dialogoutput').text($('#dialoglink').attr('data-string')); } }, 'Cancel': { click: function () { }, icon: "delete", theme: "c" } } }) }

提交回复
热议问题