Vote count:
0
In my script I have the following:-
<script>
$("#country").on("change", function(){
var selected = $(this).val();
$("#results").html("<div class='alert-box success'><span><img src='images/shipping_ukrm.jpg'></span> <b>£" + selected + " plus Packaging</b></div>");
$('#frmelement').val(selected);
})
</script>
I select the country which in turn gets the value of the option value in dropdown select field, but I want to store the dropdown value which is country name in a variable to pass and use within a form
Anyone help
asked 1 min ago
AJAX/Jquery Store dropdown value in variable
Aucun commentaire:
Enregistrer un commentaire