If i click on checkbox under activateUiHTML div , it is appending that particular div to an another div present inside My Orders div
However if i uncheck the checkbox and recheck the checkbox under activateUiHTML , it is adding the same elemnt to the My Orders div again .
This is my jsfiddle
I tried to put this condition , but not sure if this is correct or not
if($('#addtoordersdiv'+id_attr_val).length > 0)
{
}