I have a in my website, and I have a script in jquery that has this function:
$(\"#multi\").on
How about this
var = last; $('#multi').find('option').each(function() { $(this).click(function() { if($(this).hasAttr('selected')) { last = $(this); } } }