Bot
Bot

Reputation: 11855

Hide / show checkboxes in jquerymobile controlgroup

I have a controlgroup checkbox for jQueryMobile. I want to hide certain checkboxes depending on a previous selection of a <select></select>. However if it happens to be the last or first element of the control group, the checkbox border then looks weird. How would I get around this, and after the hide, have it show the control group properly?

http://jsfiddle.net/AyWN7/1/

Upvotes: 1

Views: 1027

Answers (1)

Aurelio De Rosa
Aurelio De Rosa

Reputation: 22162

Add this line in both functions:

$('#appointmentAddonServicesFieldset').controlgroup('refresh');

Upvotes: 3

Related Questions