I feel like this should be an easy one but am having trouble finding the answer here and via Google. Using jQuery, how do I retrieve the currently selected value from a dropdown in an EditForm/NewForm. The dropdown is a lookup column?
I've tried:
$('#my_lookup_input_id').val()
Which returns a static value; if the drop down is changed, it won't alter the val()
output.
I found this answer but I am using SP2007. I need to be able to get the lookup ID/name pair from the dropdown in order to update another record from a different list using SPServices and GetListItems
.
$('#my_lookup_input_id :selected').val()
?input
tag.