brihol44
asked on
$.ajax + Coldfusion form is always selecting first value in select field.
Hello, I'm using the alert function and I see that I'm getting input values but all of the select values are only selecting the very first <option> value even if I select a different value.
function rate_it() {
dataString = $("#myForm").serialize();
alert(dataString);
$.ajax({
type: "POST",
url: "includes/inc_rate.cfm",
data: dataString,
cache: false,
success: function() {
},
error: function (xhr, ajaxOptions, thrownError) {
alert(xhr.status);
alert(thrownError);
}
})
};
How do you call it and what does your rendered HTML look like?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.