On Aug 15, 12:54 pm, Jiming <[EMAIL PROTECTED]> wrote: > I need unbind the onchange event of a select box, and then set its > value and rebind the onchange function back. But i found the unbind do > not return the binded function. What shall i do?
Unbind returns a jQuery object so you could do this: $('#mySelect').unbind().val(myValue).bind('change',function() { // blah blah blah });