[jQuery] AJAX calls with dynamic variables.

2007-11-03 Thread BuckRogers
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

[jQuery] How do you return the index of an option selected

2007-10-27 Thread BuckRogers
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

[jQuery] DropDown list and selected Index - SelectedIndex ?

2007-10-26 Thread BuckRogers
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