Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Show/hide radio buttons based on checkbox state
Message
From
29/01/2014 02:19:33
 
 
To
28/01/2014 18:02:57
General information
Forum:
Javascript
Category:
JQueryUI
Miscellaneous
Thread ID:
01592468
Message ID:
01592534
Views:
32
>>Only if you put the class on multiple checkboxes.
>>
>>Something else I just thought of. Have you verified that there is only one checkbox with Id = AHYSChk01? I've made the mistake of having multiple objects with the same Id.
>>
>Yes, I have and yes it does.
>
>Finally chased it down - turns out it was an extraneous bracket that had gotten moved too far down to get caught.

:-)
But wouldn't have debugging the browser show that up......

>I figured it would be something simple and stupid if y'all couldn't point and go "yeah, right there is your error"

Well there was the :ischecked should be in quotes problem. :-)

>
>>>Yes, yes I have...and yes it is.
>>>
>>>>Have you checked the source in the browser to verify that the Id is correctly translated to 'AHYSChk01' ?
>
>>>>
>>>>Might be safer to use a class to identify it. e.g: input type='checkbox' class='chk' .... and then:
$('.chk').click(function () { //etc});
>>>
>>>I thought of that, but wouldn't that do the same thing to ALL the checkboxes on the form?

True. James version would have handled that but you'd be back to square one if the ID's were wrong anyway.
Previous
Reply
Map
View

Click here to load this message in the networking platform