You need to find the option, not the select.
var monthVar = from the server or wherever;
$(#intended_start_month option[value= + monthVar + ]).attr(selected,
selected);
Glen
On 9/30/07, voltron [EMAIL PROTECTED] wrote:
Hi all, how would select an option and set its attribute to selected?
Glen saves the day again, thanks!
On Sep 30, 9:47 pm, Glen Lipka [EMAIL PROTECTED] wrote:
You need to find the option, not the select.
var monthVar = from the server or wherever;
$(#intended_start_month option[value= + monthVar + ]).attr(selected,
selected);
Glen
On 9/30/07, voltron
2 matches
Mail list logo