I have this Jquery function to mask my textbox:

```
  jQuery(function($){ //Mask textbox #hour with placeholder
   $("#hour").mask("9:99",{placeholder:"0"});
   $("#hourInTable").mask("9:99",{placeholder:"0"});
});

```

Works perfectly with this html code:

But when I try to do it in the textbox that has the ID hourInTable outputted by Jquery it doesnt mask anything:

```
jqTds[2].innerHTML = '<input type="text" name="hourInTable" id="hourInTable" value="00:00">';

```

This above code is called after a button press and the textbox hourInTable is placed somewhere on the page.

Placed this code direct into my html:

```
<input type="text" name="hourInTable" id="hourInTable" value="00:00">

```

And it worked, so its due to the html output in JS.

Thanks in advance.