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
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
HTML Pages with CSS and JavaScript
textarea and conditional READONLY
Ramesh Y Patil
Greenhorn
Posts: 17
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi all,
I have an empty text area. After I paste some text on the textarea, I need to change the textarea to readonly. I would greatly appreciate any help with this.
Thanks
Ramesh Patil
Niki Nono
Ranch Hand
Posts: 256
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
how about making it readonly on change of the text area?
Life called,so here I am.<br />Cheers<br />Niki.:-)
Ramesh Y Patil
Greenhorn
Posts: 17
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Yes but how do you make the READONLY tag conditional
Niki Nono
Ranch Hand
Posts: 256
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
on change { if (required) { make readonly... } else do other thing. }
If this is not what you want then i have not understood your problem. please make it more clear.
Life called,so here I am.<br />Cheers<br />Niki.:-)
Ramesh Y Patil
Greenhorn
Posts: 17
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thank you. It worked . Used DOM
<script language=javascript>
function bevent()
{
var xx = document.xx.btest;
xx.readOnly= true;
}
</script>
<form name=xx>
<textarea name=btest onChange="bevent()" rows="1" cols="20">
</textarea>
</form>
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Value in the textarea is not retaining in jquery popup modal.
c:set adding a newline
Help with values from HTML page to JSP page.
Want to display non editable in a frame
Show text attachment in Servlet
More...