Change inner elements id during clone
I'm doing a clone of a DIV element on button click, I'm able to change the value of ID of the DIV element I'm cloning. But is it possible to change the id of the inner element. In the below code I'm changing the Id of #selection while cloning, I need to dynamically change the id #select . <div id="selections"> <div class="input-group" id="selection"> <span class="input-group-addon"> <i class="icon wb-menu" aria-hidden="true"></i> </span> <select class="show-tick" data-plugin="select2" id="select"> <option>True</option> <option>False</option> </select> </div> </div> <button class="btn btn