Here is a my html form ,In this form have three select dropdown and i am submitting this form using ajax on onchange. So if i select first dropdown it will display first selected dropdown value. If I select second dropdown it will display only the second selected dropdown value. But i wanted to display all selected dropdown I mean first, second and third selected dropdown value.
So my question is how to get all selected value from multiple select tag. And here ajax file file_ajax.php code
<?php
if($_GET)
{
print_r($_GET);
} ?>
$("form select").on('change', function () {
$.ajax({
url: 'file_ajax.php',
type: 'GET',
data: $(this).serialize(),
dataType: 'html'
})
.done(function(data){
$('#form-content').html(data);
})
.fail(function(){
alert('Form Submission Failed ...');
});
});
Please reply me thank you.