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

[eluser]Dizza[/eluser]
Hey there,

I think the answer to this question is quite simple.

I want to get the value of my form_dropdown with jQuery when the form is submitted.
The value will be passed to the url so i can get the ID on the next page out of the url.

The thing is that i dont know how i can add javascript to the anchor tag.


The Dropdown has an ID which i select with jQuery to get the value
Code:
&lt;?php echo "<br />"; echo form_dropdown('klasdropdown', $klasdropdown, '', 'id="test"' ); ?&gt;

The jQuery code is as follows:
Code:
$('select#test').val();

And the anchor
Code:
&lt;?php echo anchor('aanwezigheid/formulier/' . "I WANT THE VALUE OFF THE DROPDOWN HERE" . '', 'ga');?&gt;

Now my question, how can i get the output of the jquery into the anchor?

I searched but didn't find anything which solves my problem

Thanks already Big Grin


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