Here is an example found in the documentation :
$.get(test.php, { name: John, time: 2pm } );
How do I go about changing the parameters dynamically.
Let's say I have a function that returns a name. I don't want John,
I want the string retuned from my getName() function
How do you return the index of an option selected:
select
option value=Aa/optionoption value=Bb/optionoption
value=Cc/option
/select
I want to return 0, 1 and 2 when the above optiones are selected
How do I go about retreiving the selected value of a dropdown list
using jquery?
In regular js I do this :
select onchange=f(this.selectedIndex)
option/option
option/option
/select
3 matches
Mail list logo