How to Open Multiple PopUp windows with JQuery on form submition (popUps should be relative to form

Posted by Ole Jak on Stack Overflow See other posts from Stack Overflow or by Ole Jak
Published on 2010-04-28T09:34:06Z Indexed on 2010/04/28 9:53 UTC
Read the original article Hit count: 285

Filed under:
|
|
|
|

I have A form like this:

    <form> 
<fieldset class="ui-widget-content ui-corner-all"> 
<select id="Streams" class="multiselect ui-widget-content ui-corner-all" multiple="multiple" name="Streams[]"> 
     <br /> 
<option value="35">  Example Name (35)</option> 
<option value="44">  Example Name (44)</option>  
<option value="5698">  Example Name (5698)</option> 
<option value="777">  Example Name (777)</option> 
<option value="12">  Example Name (12)</option>   
    </select> 
      <br/> 
      <input type="submit" class="ui-state-default ui-corner-all" name="submitForm" id="submitForm"  value="Play Stream from selected URL's!"/> 
  </fieldset> 
</form>

in my JS + HTML page I use JQuery.

As you can see I allow user to select multiple Items.

I want to open on Submit button click as many popup windows as many Items he selected in a list. Each popUp window should open some url like www.example.com/test.php?id=OPTION_SELECTED .

So for each of the selected options I ll get a pop up window whith different url.

Please Help.

© Stack Overflow or respective owner

Related posts about html

Related posts about JavaScript