Dynamic Select with Parameter


/ Published in: jQuery
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.