load div without refresing page using select option

AborbEmbess

New Member
I want to load the results of a form into a div without refreshing the page. The result should load if an option is selected. By selecting the option submits the form without page refresh and then load the result. Here is the code, how would i use jquery with this \[code\]<form name="form" action="show.php" method="GET"><select name="school" ><option value="">School</option><option value="http://stackoverflow.com/questions/6712930/1">St.Peter</option><option value="http://stackoverflow.com/questions/6712930/2">JHS</option></select><input type="submit" name="Submit" value="http://stackoverflow.com/questions/6712930/Search" ></form><?php$s = $_GET['school'];if($q && ($s =='1')){echo "St.peter H.S";}elseif($q && ($s=='2')){echo "JHS";}else echo "Enter something"; ?>\[/code\]
 
Top