I want to remove this class on checkbox toggle.
$("#checkbox").toggle(function () {
var it0 = $('#IT0').text();
var ip1 = $('#sv1').text();
var TC = "<div class='" + ip1 + "' id='" + it0 + "'><input type='text' name='test' value='" + ip1 + "'></div>";
$('#selected').html(TC);
}, function () {
var it0 = $('#IT0').text();
var ip1 = $('#sv1').text();
$("#" + it0).removeClass("." + ip1);
});
I am not sure why the remove class is not working on "<div class='"+ip1+"' id='"+it0+"'>