Vanwill,

Use $.jqm() to *initialize* an element for use with jqModal, and then
$.jqmShow() on the element to "trigger".

E.g. to display a modal on page load;

$().ready(function(){
  // Initialize DOM element with ID 'modalElement' for jqModal use
  $('#modalElement').jqm({ajax: 'ajax_return.html', trigger: false});

  // Trigger the modal to display
  $('#modalElement').jqmShow();

});

The above could be chained, of course. E.g.;
  $('#modalElement').jqm({ajax: 'ajax_return.html', trigger:
false}).jqmShow();


Hope this helps,

~ Brice


Reply via email to