www.webdeveloper.com
Results 1 to 3 of 3

Thread: Disabled input text field's value

  1. #1
    Join Date
    Aug 2009
    Posts
    10

    Disabled input text field's value

    Hi

    I have an input text field which I want it in disabled mode.
    There is button, on clicking of that calendar pops up and the selected date is displayed in that input text.

    But since it is disabled, on submitting the form I get its value as blank.

    I dont want to use readonly property. Because it shows cursor in text field.

    Is there any workaround for this, so that input text looks like disabled
    (Cursor should not be able to set inside that) and also we can get its value on submit.

    Thanks.

  2. #2
    Join Date
    Jul 2009
    Posts
    70
    you may have allready done this but
    Code:
    <input type="text" value="whatever you want" disabled>

  3. #3
    Join Date
    Aug 2009
    Posts
    10
    I already have tried 'disabled' property.

    But on submitting the form I am getting input text value as blank.

    Can we have same look for 'readonly' like 'disabled' ?

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



Recent Articles