HI
I am using Inartistic web drop down and I have set Multiple selection set to true . And I need to Copy the Current Value of a Web Drop down in to Clip Board and popup should come and then user can Paste it in another web drop down for searching the contents . Can anybody please help to resolve this issue in all browsers .
Hi Anybody can help me ?
Hi Sujay,
You can achieve this, for example using the ValueChanged client-side event of the second dropdown to iterate through its items and select these that match one of the pasted values:
function onValueChanged(sender, e) { //get the pasted values (works for separator ',') var values = e.getNewValue().split(','); for (var i = 0; i < sender.get_items().getLength(); i++) { for (var j = 0; j < values.length; j++) { var item = sender.get_items().getItem(i) if (item.get_text() == values[j]) { item.select(); } } } }
Let me know if this helps.