Using the jQuery tools DateInput API found at
http://flowplayer.org/tools/dateinput/
I need to toggle an input box in between a normal input box, and a box used for a date input control.
I have no problem using the following to toggle the dateinput calendar on:
$('#value').dateinput({selectors:true, max: endDay(new Date()), yearRange:[-10,5] });
The problem I am having, is when I need to toggle the input box back to normal, and not have it be a dateinput, I cannot. For example, I would imagine there would have been an API call such as the following:
$('#value').dateinput('destroy');
Does anybody know what I can due to accomplish this?
Replace it with a new input via
.replaceAll()or.replaceWith().