The whole page is dynamically made friends with the data received from the server like this:

$('<input>') .attr('id', 'input' + id) .attr('type', 'text') .appendTo('#par' + i); 
 <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> 
Also from the server comes information about the mask pattern for each text input field. But for some reason it is impossible to assign a mask to a field that is built dynamically, everything works on statistical fields. What could be the reason and how can it be solved?

  • one
    Give the full code, how elements are loaded, and how the mask is hung - Denis Startsev
  • there was a stupid mistake. unrelated to this - cccheshi

0