Results 1 to 3 of 3

Thread: fixed/not deletable prefix/value

  1. #1
    Join Date
    Mar 2013

    fixed/not deletable prefix/value

    Hi all,

    not even sure if you should put this in the javascript section, but I assume I should. Couldn't find this really so far, but maybe I'm not sure about the keywords I should use...

    For phone number fields, I'd like to set a fixed prefix/value which the user can't delete. For example in the Netherlands, a mobile number always starts with '06'. Now I set the inputfield.val('06'), but the user is still able to change this.

    Anyone has an idea? Thanks in advance!

  2. #2
    Join Date
    Feb 2013
    If you don't want it editable, don't put it in the input field. Have it outside.

    06-<input type="text" />

  3. #3
    Join Date
    Nov 2010
    two input fields?
    <input disabled value=06><input>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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