only copy selected items to clip board
My form as a checkbox next to each line, this checkbox will exclude those items from copying to the clipboard. Is there a way using JQuery to exclude items from copying to the clipboard, but keep the remaining non checked items?
if they select, State, Price and Agency, then they should not be copied to the clipboard, but Manager and Name should be.
- <div id="Sales">
- <div class="sale">
- <input type="checkbox" id="salesId_1" value="state"/><label for="State">State/label>
- <input type="checkbox" id="salesId_2" value="salePrice"/><label for="Price">Price</label>
- <input type="checkbox" id="salesId_3" value="manager"/><label for="Manager">Manager</label>
- <input type="checkbox" id="salesId_4" value="Name"/><label for="Name">Name</label>
- <input type="checkbox" id="salesId_5" value="Agency"/><label for="Agency">Agency</label>
- </div>
- </div>