I'm very new to JQuery and don't have much experience with javascript at all, and after hours of trying to figure this out i give up. I know how to do it in PHP, but there's something I'm missing when I try it in JQuery.
I have a html-file that generates a dorpdown box that looks something like tihs:
<form action="" method="GET">
<select id="countiesList" name="counties">
<option value="all" selected="selected">All Counties</option>
<option value="county1">County 1</option>
<option value="county2">County 2</option>
...
</select>
</from>
- How do I get the selected value from the dropdownbox in to a JQuery function? Do I have to refer to the function I want to use in the form?
- Should I have a submit button? (I'd prefer not to)
--edited-- My point is that I want to find out which of the options the user selects, so that I can use it in another function.
Thanks a lot!
method="GET"here?