Ajax post and return

// $(‘select#input_drink_catagory’).val(newD[4]);

I am in RW Foundation 6 using the text input and select … I post with Ajax and get my return, but having problems with an edit form where it returns the certain row from the database, and lets who controls the form to edit. I can return the text inputs by the above code, however, the select is not changing no matter what I try. I had problems at first the text inputs and could not use $(’#input_drink_item).val(‘whatever’); found an alternative
$(“input[id=‘input_drink_item’]”).val(newD[1]); If this line works what could I use to change the value of a select?
I have success if I call $(’#drink_catagory).val(‘wine’) and it selects it from the console of my web bowser.
Any help would be helpful!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.