I want to get the dropdown value based on class name
<select name="changeStatus" class="changeStatus1" id="changeStatus1" onChange="business_type('1')">
Because of some reason i don't want to get the value through the name($_POST['changeStatus'];).
I want to get through class name.
Here is how I would do it, add a hidden input field and when the form is submit, modify the value of the hidden input field.
<form id="myForm">
<input type="hidden" name="hidden_input" id="hidden_input">
</form>
jQuery
$('#myForm').on('submit', function(){
$('#hidden_input').val($('#changeStatus1').attr('class'));
});
Then on the backend, you can get the class of the posted input (PHP for example)
$className = $_POST['hidden_input'];
switch($className){
// do Stuff...
}