I've got an update panel but it seems to be removing a class from one of my inputs once it has updated
Here's the code on first load
<input type="text" class="txt1 hasDatepicker" id="txt1" name="txt1">
And here's the code after the update has run
<input type="text" class="txt1" id="txt1" name="txt1">
Here's the jQuery that runs client side
$(function() {
$(".txt1").datepicker({ dateFormat: 'D d M yy' });
});
It seems to just remove the hasDatepicker class after the update has run and it is causing problems.
Any ideas why it's doing this?