Link to home
Start Free TrialLog in
Avatar of brihol44
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);
    }
  })  
};

Open in new window

Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

How do you call it and what does your rendered HTML look like?
ASKER CERTIFIED SOLUTION
Avatar of reiters
reiters
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial