How to add name attribute if checkbox is checked and if it is unchecked than remove.I added checkbox inside for loop so i want only which checkbox is checked should have nam