A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
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.
rocket mass heater
subject: Non editable text box
Getting error to upload file
style of browse button
input type=file question
Is it possible to make a file chooser in struts?
URGENT-Resizing of submit button
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014