jquery - select an option without reload page -


i know, code not well, tryed best.

here code:

function submitform() {     document.getelementbyid("formelement").submit(); }  jquery(document).ready(function($) { var img = new image();     $(img).load(function () {     $(this).hide();     $('#loader').removeclass('loading').append(this);     $(this).fadein(800); }).attr('src', '.chart.php?id=<? echo $sid; ?>&date=<? echo $order; ?>'); });  <div id="loader" class="loading"></div>  <select name="order" class="dropdown" onchange="submitform()"> <option disabled selected> <? echo(choose); ?> </option> <option value="./chart.php?id=<? echo $sid; ?>&date=d"> <? echo(choose_day); ?> </option> <option value="./chart.php?id=<? echo $sid; ?>&date=m"> <? echo(choose_month); ?> </option> <option value="./chart.php?id=<? echo $sid; ?>&date=y"> <? echo(choose_year); ?> </option> </select> 

my problem is, dont want reload page if use select options.

i hope can me, thx now^^

you need learn how make "ajax" jquery. start : 5 ways make ajax calls jquery


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -