Thanks for your response Arun.
The problem I have found with this example is that it does not work on the first selection.
$(selections).each(function ()
if i have selected three items in the popup , it will show only 2 items.
above mentioned function doesn't fire on single selection.