Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 38395

Re: JavaScript Question

$
0
0
by Christian Thompson.  

Naturally, pretty much as soon as I submitted my post, I realized how to do it - using the click() method.  I hope somebody else finds this useful.  Take it easy and keep on Moodling!

//Check an unchecked checkbox
isChecked=document.getElementsByName("availablefrom[enabled]")[0].checked;if(!isChecked){
    document.getElementsByName("availablefrom[enabled]")[0].click();}


Viewing all articles
Browse latest Browse all 38395

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>