Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>As a first problem</strong>, in your PHP code, you improperly close the select tag, like this,</p> <pre><code>&lt;select ... /&gt; ... &lt;/select&gt; </code></pre> <p>That will probably cause some errors. It should be like this, without the extra <code>/</code>,</p> <pre><code>&lt;select ... &gt; ... &lt;/select&gt; </code></pre> <p><strong>As another problem</strong>, you spell your function call like this,</p> <pre><code>onclick="change_categories(0);" </code></pre> <p>but you misspell your function name like this,</p> <pre><code>function change_categoriees(key) {...} </code></pre> <p>Notice the extra "e" in "categoriees". So you're not actually calling the function properly.</p> <p>It looks like <strong>other people have some answers too</strong>, so I'll just finish by offering some suggestions for dev tools and documentation. For development tools, Firefox Firebug is excellent, it will let you debug css, html, and javascript. I've also heard good things about the development tools in Chrome. In fact, all the newest browser versions have development tools of some sort, and they're all pretty good.</p> <p>Next, <a href="https://stackoverflow.com/questions/6476517/how-to-populate-html-select-list-using-javascript">the Mozilla docs</a> are a good resource for web-development. You might also be interested in checking out the resources mentioned at <a href="http://w3fools.com" rel="nofollow noreferrer">w3fools.com</a>.</p> <p>Also, in the future, when sharing code on Stack Overflow, you should consider sharing a live example with <a href="http://jsfiddle.net" rel="nofollow noreferrer">jsFiddle</a>.</p> <p>Oh wait, before I forget, you should also use a text editor or <a href="http://www.ibm.com/developerworks/opensource/library/os-php-ide/index.html" rel="nofollow noreferrer">an IDE</a> that does syntax highlighting, and maybe even syntax correction, for you. I use a simple text-editor called <a href="http://notepad-plus-plus.org/" rel="nofollow noreferrer">Notepad++</a> for Windows, though there are many others.</p>
 

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