How To Display Information When Option Changes?
I have a drop down menu below:
Solution 1:
What you are looking for is a php Ajax solution so you can update the list of students will be refreshed without the need to refresh the page
$('#sessionsDrop').change(function() {
var search_val=$(this).val();
$.post("./nameofyourphp.php", {search_term : search_val}, function(data){
if (data.length>0){
$("#divtodisplaydata").html(data);
}
})
})
and add this to you php so you can get the selected value
$term = $_POST['search_term'];
and here is step by step tutorial
http://www.ibm.com/developerworks/opensource/library/os-php-jquery-ajax/index.html
Post a Comment for "How To Display Information When Option Changes?"