Posted By

vagrantradio on 10/08/10


Tagged

parameter


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

nbehier
dekehooper
jillella


Dynamic Select with Parameter


 / Published in: jQuery
 

Passes first option value as param to another dynamic select and loads dynamic select without page refresh.

  1. jQuery("#yourselect").change(function() {
  2. var id = jQuery(this).val();
  3. if(id != "") {
  4. jQuery("#yourdivwhereselectloads").load("load.php?parameter=" + id);
  5. }
  6. });

Report this snippet  

You need to login to post a comment.