Open ctpaula opened 5 years ago
Hi, I think you need unmask before create a new obj, see code
$("#tstbtn").click(function(){ $(".mask-date").unmask(); $("#teste").append('
Just re-apply the mask inside the event:
$("#tstbtn").click(function(){
$("#teste").append('<tr><td class="mask-date">930915</td></tr>');
$(".mask-date").mask("99/99/99");
});
Searched a lot on Git, on Docs and don't found anything that helped me. I know the mask work on "td" but I need to add a td when a button is clicked, in this case, the mask just dont work. What I need to do?
Made this jsfiddle with one example took from this issue (https://github.com/RobinHerbots/Inputmask/issues/1110) but put my problem in the button "tst".
https://jsfiddle.net/6w48vdej/