Note that there are some explanatory texts on larger screens.

plurals
  1. POMy jquery code won't work on Chrome browser
    primarykey
    data
    text
    <p>I have a html file that has a combo box with 7 options and 7 buttons also for each option. But it won't work on my chrome browser, I believe that there is something wrong with my code. I don't know why, any help will be appreciated.</p> <p>Jquery:</p> <pre><code>$(document).ready(function(){ $("#myButton1").hide(); $("#myButton2").hide(); $("#myButton3").hide(); $("#myButton4").hide(); $("#myButton5").hide(); $("#myButton6").hide(); $("#myButton7").hide(); $("#opt1").click(function(){ $("#myButton1").show(); $("#myButton1").fadeIn(1000); $("#myButton1").click(function(){ $("#myButton1").hide(); }); }); $("#opt2").click(function(){ $("#myButton2").show(); $("#myButton2").fadeIn(1000); $("#myButton2").click(function(){ $("#myButton2").hide(); }); }); $("#opt3").click(function(){ $("#myButton3").show(); $("#myButton3").fadeIn(1000); $("#myButton3").click(function(){ $("#myButton3").hide(); }); }); $("#opt4").click(function(){ $("#myButton4").show(); $("#myButton4").fadeIn(1000); $("#myButton4").click(function(){ $("#myButton4").hide(); }); }); $("#opt5").click(function(){ $("#myButton5").show(); $("#myButton5").fadeIn(1000); $("#myButton5").click(function(){ $("#myButton5").hide(); }); }); $("#opt6").click(function(){ $("#myButton6").show(); $("#myButton6").fadeIn(1000); $("#myButton6").click(function(){ $("#myButton6").hide(); }); }); $("#opt7").click(function(){ $("#myButton7").show(); $("#myButton7").fadeIn(1000); $("#myButton7").click(function(){ $("#myButton7").hide(); }); }); }); </code></pre> <p>HTML:</p> <pre><code>&lt;select&gt; &lt;option id="opt1"&gt;One&lt;/option&gt; &lt;option id="opt2"&gt;Two&lt;/option&gt; &lt;option id="opt3"&gt;Three&lt;/option&gt; &lt;option id="opt4"&gt;Four&lt;/option&gt; &lt;option id="opt5"&gt;Five&lt;/option&gt; &lt;option id="opt6"&gt;Six&lt;/option&gt; &lt;option id="opt7"&gt;Seven&lt;/option&gt; &lt;/select&gt; &lt;input type="button" value="Click 1" id="myButton1"/&gt; &lt;input type="button" value="Click 2" id="myButton2"/&gt; &lt;input type="button" value="Click 3" id="myButton3"/&gt; &lt;input type="button" value="Click 4" id="myButton4"/&gt; &lt;input type="button" value="Click 5" id="myButton5"/&gt; &lt;input type="button" value="Click 6" id="myButton6"/&gt; &lt;input type="button" value="Click 7" id="myButton7"/&gt; </code></pre> <p>JSFiddle: <a href="http://jsfiddle.net/GqdS7/" rel="nofollow">http://jsfiddle.net/GqdS7/</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload