When using jQuery, what is the syntax to set a lookup column to a value retrieved from another lookup column. I have been able to prepopulate a string column with a value retrieved from a lookup column, but am having trouble setting a lookup column to this value. How do I set the lookup column to the id of the value that the jQuery retrieved for me? Thank you.
Can you explain a little more? How are your lookup columns related?
If you take a look at my SPServices jQuery library, it may give you some clues. The way I read your question, you should probably just be setting to the text value, not bothering with the ID.
You can use the following:
var selector="select[title=MyLookup]"; $(selector).val(newValue);
the newValue could be an ordinal of the option or the displayed text equivalent of the option.