/ Published in: jQuery
Passes first option value as param to another dynamic select and loads dynamic select without page refresh.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
jQuery("#yourselect").change(function() { var id = jQuery(this).val(); if(id != "") { jQuery("#yourdivwhereselectloads").load("load.php?parameter=" + id); } });