This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding readOnly property of input type control in html.

 
neena gupta
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<input name="txt1a" type="text" class="txtBoxM" id="txt1a" />

I have this textbox i want to keep readOnly property true in beginning and then i have one select box(combo). When i select any value from that(It means on Onchange event ofs selectbox) then using javascript i want to change my readOnly property of textbox to false.

I have tried many times but that is not working.

Could any body help me.
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this out:


P.S.: You might have to change your name to follow the Naming Policy of Javaranch
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64185
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"neenascjp gupta",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious. "neenasjcp" is obviously not your real name, so it fails the policy test.

Thanks!
bear
JavaRanch Sheriff
 
Scott Selikoff
author
Saloon Keeper
Posts: 3896
16
Eclipse IDE Flex Google Web Toolkit
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"neena gupta"

Please review the javaranch naming policy on fictitious names and udpate your name accordingly.

-Scott
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic