Note that there are some explanatory texts on larger screens.

plurals
  1. POJavascript Function Won't Execute, No matter what I do
    primarykey
    data
    text
    <pre><code>&lt;script type="text/javascript"&gt; function appearbox(){ document.getElementById('hotelparoikia').style.display = 'block'; document.getElementById('desc1').style.display = 'block'; document.getElementById('desc2').style.display = 'block'; document.getElementById('typeofroom').style.display = 'block'; } &lt;/script&gt; </code></pre> <p>As you can see, the above is the javascript code I have in my HTML file.</p> <pre><code>&lt;form&gt; &lt;table&gt; &lt;tr&gt;&lt;th&gt;Επιλέξτε Περιοχή&lt;/th&gt;&lt;th style="display:none;" id="desc1"&gt;Επιλέξτε ξενοδοχειακό συγκρότημα&lt;/th&gt;&lt;th style="display:none;" id="desc2"&gt;Επιλέξτε τύπο δωματίου&lt;/th&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td align="center"&gt; &lt;select id="hotelarea" onFocus="appearbox"&gt; &lt;option value="0" selected="selected" onFocus="appearbox" &gt;ΠΑΡΟΙΚΙΑ&lt;/option&gt; &lt;option value="1" onFocus="appearbox" &gt;ΝΑΟΥΣΑ&lt;/option&gt; &lt;option value="2" onFocus="appearbox" &gt;ΧΡΥΣΗ ΑΚΤΗ&lt;/option&gt; &lt;option value="3" onFocus="appearbox" &gt;ΠΙΣΩ ΛΙΒΑΔΙ&lt;/option&gt; &lt;option value="4" onFocus="appearbox" &gt;ΑΛΙΚΗ&lt;/option&gt; &lt;/select&gt; &lt;/td&gt; &lt;td align="center"&gt; &lt;select style="display:none;" id="hotelparoikia"&gt; &lt;option value="0" selected="selected"&gt;PAROS BAY HOTEL&lt;/option&gt; &lt;option value="1"&gt;MARISA ROOMS&lt;/option&gt; &lt;option value="2"&gt;AROKARIA BEACH&lt;/option&gt; &lt;option value="3"&gt;REPPAS APARTMENTS&lt;/option&gt; &lt;option value="4"&gt;VASSILIKI ROOMS&lt;/option&gt; &lt;/select&gt; &lt;/td&gt; &lt;td align="center"&gt; &lt;select style="display:none;" id="typeofroom"&gt; &lt;option value="0" selected="selected"&gt;ΜΟΝΟΚΛΙΝΟ&lt;/option&gt; &lt;option value="1"&gt;ΔΙΚΛΙΝΟ&lt;/option&gt; &lt;option value="2"&gt;ΤΡΙΚΛΙΝΟ&lt;/option&gt; &lt;option value="3"&gt;ΤΕΤΡΑΚΛΙΝΟ&lt;/option&gt; &lt;/select&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/form&gt; </code></pre> <p>This is another part of the code in my HTML file</p> <p>As you can see, when the DropDownList is OnFocus, appearbox() should run and make some elements visible, but it won't run. Can anyone help me?</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