Results 1 to 1 of 1

Thread: Strange behaviour whan using a Form input mask

  1. #1
    Join Date
    Apr 2009
    Location
    Cognac, France
    Posts
    400
    Thanks
    2
    Thanked 57 Times in 57 Posts

    Default Strange behaviour whan using a Form input mask

    I am trying to use a JS mask to put the "/" in a date field.

    This field also has an "onBlur" function that does various validation on the date.

    I use "onKeyup" to use the mask as the user is typing the date.

    I also place a default value of "jj/mm/aaaa" to the date field, ie dd/mm/yyyy in French.

    My problem is when the focus is given to the input field for the date something strange happens.

    The field flickers to highlighted, ie focus, and then is no longer highlighted. The cursor cannot be seen but is before the first character.

    If any input is made it does appear at the start of the date input field but it doesn't of course overwrite the default because it is no longer highlighted.

    Can anybody find me a solution to this problem, I know it may be something obvious to others but I've probably looked at it too long to be able to see the answer.

    Here is a link to a sample page that displays this behaviour.

    http://www.cognac-jaugeage.com/abctest.htm

    PS I'm using IE 7
    Last edited by forum_amnesiac; 04-23-2009 at 01:17 PM. Reason: want email notification of response

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •