Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help on conditionally disabling the fields

 
ms raaghu
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I have two radio button say
radio 1 and 2 respectively..
and a text field.. ..... on page load the radio 1 will be selected
so based on that condition textfield shld be disabled ?
please let me know how can i achieve this.. ?

i have written a function where on change the textfield will be disabled but when the page refreshed the disability
is gone for a toss...so please tell how dis can be done??
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65220
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ms raaghu wrote:how dis can be done??

dis? What is "dis"?
 
ms raaghu
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry "dis" refers to "THIS"
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
on window.onload look at what the radio button is set to and call your function that enables and disables.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic