Joined January 2013
·

tmaster

Dublin
·
·

@idered That's a pretty neat function, but my example uses a radio button instead of a checkbox. How can I modify your function to suit the example? I tried to set checked property on the button in the html <button type="button" id='check_all' checked>Check All</button>, but it did not work. I then tried to use jQuery to set it $('#check_all').prop('checked', true);which actually works, but it wont achieve the same effect as your original function, because clicking the button won't change the checked property from true to false. So any suggestions?

@damienklinnert Yes, indeed. But I am not sure how long ago, the Chrome JS console did not support this.

Achievements
304 Karma
104,034 Total ProTip Views