Joined January 2013
·
Posted to
Enter multiple lines in Chrome JS console.
over 1 year
ago
@damienklinnert Yes, indeed. But I am not sure how long ago, the Chrome JS console did not support this.
@damienklinnert Yes, indeed. But I am not sure how long ago, the Chrome JS console did not support this.
@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 thechecked
property from true to false. So any suggestions?