I am using Josh Bush's (digitalbush.com) masked input plugin in combination with jQuery UI's datepicker widget. It was working fine with jQuery UI 1.7 but now that I've tried the dev release (1.8a1) I'm seeing some strange behaviour. The code: $(".dateformat").datepicker({ nextText: "", prevText: "", changeMonth: true, changeYear: true }); $(".dateformat").mask("99/99/9999"); The "buggy" behaviour: If I try manually typing the date into the text input instead of selecting it using the datepicker, the values I've typed get erased as soon as I type 6 characters. For example, I can type "11/20/2___" but as soon as I type "0" after that, the preceding numbers disappear and I'm left with "__/__/_0__". Very odd. I'm thinking jQuery UI 1.8a1 doKeyPress() function for the datepicker widget is conflicting with Masked Input's onkeypress event handling. Anyone have an idea on how to resolve this? --
OBJECTIVE: Copy all the attributes of a TEXTAREA element then apply them to a new element (ie. a DIV) and finally delete the original TEXTAREA element. POSSIBILE SOLUTIONS: 1) I could write a function that cycles through all possible attribute names (ie. class, style, title, name, id, etc.) and if they exist copy their values to the DIV element (but this seems intensive -- is there a shortcut?) 2) I looked at trying to set the .nodeName property but it only has a getter method, not a setter method (it's read-only) Any ideas? Thanks in advance...