Welcome Guest, Not a member yet? Register   Sign In
Simpel Question (anchor + js)
#3

[eluser]Dizza[/eluser]
[quote author="kanjimaster" date="1336508265"]I guess you could use jQuery to update the anchor's href attribute when the value of the dropdown changes, but why not just use a submit button for the form instead of an anchor, so that the data is passed in the normal way?[/quote]

But how do i get the value from the dropdown then?
If i do it like this
Code:
<?php echo form_open('aanwezigheid/formulier/'.$klasdropdown['id'].''); ?>


&lt;?php echo "<br />"; echo form_dropdown('klasdropdown', $klasdropdown, ''); ?&gt;
&lt;?php echo form_submit('submit', 'Voeg klas toe'); ?&gt;

the url output is:
Code:
http://afstuderen.dev/index.php/aanwezigheid/formulier/Array

The array should be the id of the selected option Sad


Messages In This Thread
Simpel Question (anchor + js) - by El Forum - 05-08-2012, 12:47 PM
Simpel Question (anchor + js) - by El Forum - 05-08-2012, 01:17 PM
Simpel Question (anchor + js) - by El Forum - 05-08-2012, 01:28 PM
Simpel Question (anchor + js) - by El Forum - 05-08-2012, 01:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB