Hi,
I have 2 div, the first one is filled with options, the actual script allow copy from the div 1 to paste in div 2 and I can copy the same element many times, but I don’t want to duplicate the same element,
THis is my HTML:
[code=html]<div class=”ms2side__div”>
<div class=”ms2side__select”><select title=”” name=”Sortable_171_sx” id=”Sortable_171_sx” size=”8″ multiple=”multiple”>
<option value=”1550″ selected=”selected”>Stop selling the product</option>
<option value=”1551″>Continue selling the product</option>
<option value=”1552″>Communicate the success of the product internally</option>
<option value=”1553″>Investigate appropriateness of new customer demographic</option>
<option value=”1554″>Re-brief and re-train</option>
</select></div><div class=”ms2side__options” style=”padding-top: 31px;”>
<p class=”AddOne” title=”Add Selected”>›</p><p class=”AddAll” title=”Add All”>»</p>
<p class=”RemoveOne ms2side__hide” title=”Remove Selected”>‹</p><p class=”RemoveAll” title=”Remove All”>«</p>
</div>
<div class=”ms2side__select”><select title=”” name=”Sortable_171_dx” id=”Sortable_171_dx” size=”8″ multiple=”multiple”>
<option value=”1551″>Continue selling the product</option>
<option value=”1553″>Investigate appropriateness of new customer demographic</option>
<option value=”1550″>Stop selling the product</option>
<option value=”1550″>Stop selling the product</option>
</select></div><div class=”ms2side__updown” style=”padding-top: 31.5px;”>
<p class=”SelSort” title=”Sort”>Sort</p><p class=”MoveTop ms2side__hide” title=”Move on top selected option”>Top</p><p class=”MoveUp ms2side__hide” title=”Move up selected option”>Up</p>
<p class=”MoveDown ms2side__hide” title=”Move down selected option”>Down</p><p class=”MoveBottom ms2side__hide” title=”Move on bottom selected option”>Bottom</p></div></div>
We can see that in DIV 2 , “Stop seeling the product” item appears many time,
so I want to hide from div one the selected and copied (to div 2) item, so that I have no duplicate in DIV 2
This is my script :
[URL=”https://drive.google.com/open?id=0B6nhIMB-ueBhd01qeUZNUDNLbkk”]https://drive.google.com/open?id=0B6nhIMB-ueBhd01qeUZNUDNLbkk