title: How to read the state of check box, pull down menu, and toggle in javascript / jquery
body: <p>I am trying to read the state of a checkbox to see if it is checked. I will also be reading the options on a pull down menu in html and I also want to read the state of a toggle if it is clicked.  I will be using a conditional to perform actions in javascript based upon these options.</p>
  <p>Here is the code for the checkbox and pulldown menu:</p>
  <p>checkbox html</p>
  <pre><code>    &lt;input type=&quot;checkbox&quot; id=&quot;checkItem&quot;&gt;Item 1
  </code></pre>
  <p>pulldown menu html</p>
  <pre><code>    &lt;form&gt;
      Select your favorite fruit:
      &lt;select id=&quot;mySelect&quot;&gt;
      &lt;option value=&quot;apple&quot;&gt;Apple&lt;/option&gt;
      &lt;option value=&quot;orange&quot;&gt;Orange&lt;/option&gt;
      &lt;option value=&quot;pineapple&quot;&gt;Pineapple&lt;/option&gt;
      &lt;option value=&quot;banana&quot;&gt;Banana&lt;/option&gt;
      &lt;/select&gt;
      &lt;/form&gt;
  </code></pre>
  <p>(I am not sure how to do the toggle)</p>
  <p>So if I check the box and select an option from the pulldown menu, I want to
  execute commands in javascript using a conditional.</p>
  <p>What is the code to create the conditional that reads if the box is checked and reads the option selected from the pulldown menu?</p>
  <p>I think jquery is needed to do this. How do I do this?</p>