Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within HTML Pages with CSS and JavaScript
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
HTML Pages with CSS and JavaScript
disable text box
priya pillai
Ranch Hand
Posts: 57
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi friends
I want to disable my text box using
java
script.
Here "a" is the line number where change dynamically
var remarks="remarks"+a
var remarks_1=document.getElementById(remarks)
document.f_update.remarks_1.disabled== "true";
f_update is the form name.
It is not working..
thanks in advance
Eric Pascarello
author
Posts: 15385
6
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
== is a comparison
Eric
priya pillai
Ranch Hand
Posts: 57
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I used
document.f.remarks_1.disabled = true;
Still not working...
Paul Clapham
Sheriff
Posts: 28322
95
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Perhaps if you change "f.remarks_1" back to "f_update.remarks_1"...
priya pillai
Ranch Hand
Posts: 57
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I changed the form name also to f that is why
stil not working
out.println("<input type=\"text\" size = \"14\" name=\"remarks" + SNo+ "\" value=\"" + remarks+ "\">");
where SNo is the serial number which change
Eric Pascarello
author
Posts: 15385
6
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Why would you find it by id than try to look it up via the form?
All you would need to do is
remarks_1.disabled=true;
Eric
My, my, aren't you a big fella. Here, have a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
disable combobox with the help of javascript
how to disable space bar key in java script
html code in PostgreSQL table
Problem in formatting of what is displayed in Outlook's opened window
Dependent select list query
More...