The bootstrap modal window which appears on clicking "Add Column" won't reset once closed. As a result, I'm not able to add more than one value to the "Master table". The below code doesn't seem to work:
$('body').on('hidden.bs.modal', '.modal', function () {
$(this).removeData('bs.modal');
});
Not sure what is going wrong. Can anyone help?
Here is the JSFiddle: http://jsfiddle.net/xjmf8qqt/10/