Enable / Disable Radio Button Form Field using chain.js
15 views
Skip to first unread message
ska
unread,
Mar 4, 2009, 12:26:48 PM3/4/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to chainjs
Hello all,
Firstly to say that chain.js is absolutely great. I learned about it a
few days ago and have already put it to use in about four different
scenarios.
Anyway, my question involves using chain() to disable a radio button.
My script gathers json data from a script using AJAX and then a radio
button needs to be either enabled or disabled according to the
evaluation of data.fully_booked.
I have something like the below in my code. Is there a way of setting
the radio button to disabled? I'm just not quite sure how to control
this from within chain().
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to chainjs
Thanks for the reply rizqi. Indeed I did try that and it didn't work.
However, I've just revisited my code and looks like I've got a slight
syntax error! So yes, it looks like this is correct after all. Many
thanks!