I have a form with a simple drop-down menu when the user selects any of the options, i want to be able to pass that selected value to a JavaScript function
Once the user clicks on an option it will alert the value in the jQuery change function but I want to use the value that was passed through in other functions but it does not get the value for some reason
function getTweet(){
$('#test').change(function() {
var value = $('#test :selected').val();
});
}
want to use the value outside of the change function but it does not grab it
<form>
<select id="test">
<option value="one">1</option>
<option value="two">2</option>
<option value="three">3</option>
</select>
</form>
getTweetfunction is missing the closing}?