Welcome Guest, Not a member yet? Register   Sign In
Load the data in ajax
#1

[eluser]htarahi[/eluser]
Hi every One
I want to load 4 tables that each specify with a selection box.
I mean I have below selection box for example.with select each ,Its table load in ajax.
<select>
<option value="table1">table1</option>
<option value="table2">table2</option>
<option value="table3">table3</option>
<option value="table4">table4</option>
</select>
-----------------------------------------------------------
(table load here )


#2

[eluser]Karman de Lange[/eluser]
You will just need to update the class/id selectors and the url as you did not post any info regarding this.

Code:
$('#select_dropdown').on('change',function(){

   //Get table Name
  $table = $(this).val();
  //Load the url + table into table_holder.
  $.('#table_holder')load('url'+table);

})




Theme © iAndrew 2016 - Forum software by © MyBB