Hi,
I’m having a big problem. I have a textbox with a date (format dd/MM/yyyy)
What i want is this:
When the users clicks in the textbox, i want the textbox to select the first two items (dd), so the user can input the days. When that’s done, i want the textbox to select MM, and after that, i want the textbox to select yyyy.
Is there any possibility to do this? I already tried this snippet:
[CODE]function selectSomeText(element){
var workRange=document.selection.createRange();
var allRange=element.createTextRange();
workRange.setEndPoint(“StartToStart”,allRange);
workRange.select();
alert(“Click Event Fired”);
}
But this will select the left part from where my cursor stands…
Any help plz?
Tnx!!