Thursday, May 12, 2011

JQuery: Set selected dropdownvalue by text


$("#IDofDDList option:contains(" + theText + ")").attr('selected', 'selected');

No comments:

Post a Comment