A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Non editable text box
Joined: Feb 06, 2006
Apr 24, 2006 03:50:00
I have a textbox with browse button. User can browse thro browse button only. He can't type anything in the text box. If he tries to enter any value in that
box, it has to throw an alert message. Please Give me sample code . Thankx in advance.
Joined: Sep 28, 2004
Apr 24, 2006 05:23:00
To make a text box non editable , you can use the readonly attribute in the inputtag like
input name='test' readonly
But it wont give you any alerts.
Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified
Joined: Nov 08, 2001
Apr 24, 2006 10:19:00
I think you are talking about the file input? If that is the case you can not control the textbox seperate from the button.
I agree. Here's the link:
subject: Non editable text box
input type=file question
URGENT-Resizing of submit button
style of browse button
Getting error to upload file
Is it possible to make a file chooser in struts?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014