/    Sign up×
Community /Pin to ProfileBookmark

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.

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@grifter7Aug 06.2009 — you may have allready done this but [CODE]<input type="text" value="whatever you want" disabled>[/CODE]
Copy linkTweet thisAlerts:
@abhijeet_digheauthorAug 06.2009 — 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' ?
×

Success!

Help @abhijeet_dighe spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...