javascript - Open a page when Mulitple Options Selected -



javascript - Open a page when Mulitple Options Selected -

i have multiple select box in html, need validate options select open new page taking me page teacher's profile , school selected, need create page each possible answer.

select teacher study , school

<select id="school"> <option value="once" selected="">one</option> <option value="twice">two</option> <option value="three">three</option> <option value="four">four</option> </select> <select id="teacher"> <option value="once" selected="">sam</option> <option value="twice">micheal</option> <option value="three">manny</option> <option value="four">jenny</option> </select>

use jquery

$(function() { $('#school, #teacher').change(function() { //you can validate here if want var mywindow = window.open("http://yourserver.com/myapp/" + $("#school").val() + "/" + $("#teacher").val(), "msgwindow", "width=800, height=600"); }); });

javascript jquery

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -