EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: aswzen on December 02, 2015, 08:48:00 PM



Title: How to get linkbutton toggle state? (using ('options')['selected'] got wrong)
Post by: aswzen on December 02, 2015, 08:48:00 PM
see this fiddle: http://jsfiddle.net/c2xjmxqd/
it will explain everything

i am trying to get linkbutton toggle state..
i see there are no 'isSelected' method in documentation. so i try to use linkbutton ('options')['selected']
but it goes not match with the condition (reversed)

How to get rid of this? i know i can put "!" in condition but it absolutely wrong right?

Thank you in advance  :)


Title: Re: How to get linkbutton toggle state? (using ('options')['selected'] got wrong)
Post by: stworthy on December 02, 2015, 11:42:22 PM
The 'selected' property indicates if the button is selected. Please refer to http://jsfiddle.net/c2xjmxqd/1/