0
How to add an email mask inputmask in a field input
within a table html
dynamically created?
Example:
<tr role="row" data-row-index="0">
<td class="text-center">
<input id="chkSelecionado" type="checkbox" />
</td>
<td class="form-group">@Html.TextBox("Contatos[0].Nome", "", new { @class = "form-control required" })</td>
<td class="form-group">@Html.TextBox("Contatos[0].Telefone", "", new { @class = "form-control required telefone" })</td>
<td class="form-group">@Html.TextBox("Contatos[0].Celular1", "", new { @class = "form-control celular" })</td>
<td class="form-group">@Html.TextBox("Contatos[0].Email", "", new { @class = "form-control required" })</td>
</tr>
$(document).ready(function(){( )};
You could give a class for this email input and call a . Mask in the class after dynamic table creation.
– Renato Diniz
Does exactly the same thing that would do off the table, like the friend said, just puts a classname to identify.
– AnthraxisBR
Okay! , so I did: <td class="form-group">@Html.Textbox("Contacts[0]. Email", "", new { @class = "form-control required email" })</td>, where I created a
$(".email").inputmask({...
, worked!– hard123