select the chekbox generated at runtime of jsf page using javascript
Amit K Jain
Ranch Hand
Joined: Nov 06, 2008
Posts: 55
posted
0
Hi,
Can someone please help me selecting the checkbox using javascript? Belew is the view source of the JSF form. On clicking the first checkbox another one should get selected automatically.
I tried to get the value of the checkbox, however, it doesn't work.
That's not a JSF form. It doesn't use JSF tags and doesn't bind to a JSF backing bean. It's just plain old HTML.
JavaScript's interactions with checkboxes is done using the "checked" property, I think. Not the "value" property.
Customer surveys are for companies who didn't pay proper attention to begin with.
Amit K Jain
Ranch Hand
Joined: Nov 06, 2008
Posts: 55
posted
0
Thank you Tim for the response.
Yes. This is not JSF form but the view source of the page created after rendering the JSF page. I have resolved this problem using checked property of the checkbox.