dialog modal-form - how to define fields on form ?

dialog modal-form - how to define fields on form ?

Hi - Almost certainly a very simple question but I'm very new to jquery-ui !

I'm trying to use the example in the doco http://jqueryui.com/demos/dialog/#modal-form to build my own modal form (if there are any other even simpler examples of modal forms I'd appreciate pointers to them).

I'm having trouble defining what fields will appear on the form.

Within the example I can see a field set which seems to be the definition of the fields to be included in the form but I can't understand how the form 'knows' how to use the field set within the form ?

The fieldset looks like this ...

  1. <fieldset>
  2.     <label for="name">Name</label>
  3.     <input type="text" name="name" id="name" class="text ui-widget-content ui-corner-all" />
  4.     <label for="email">Email</label>
  5.     <input type="text" name="email" id="email" value="" class="text ui-widget-content ui-corner-all" />
  6.     <label for="password">Password</label>
  7.     <input type="password" name="password" id="password" value="" class="text ui-widget-content ui-corner-all" />
  8. </fieldset>

... but I can't see any reference to the fieldset elsewhere on the page ?


If it matters I want to use jq 1.3.2 and jq-ui 1.7.1 .

thanks.




















    • Topic Participants

    • zoho