onChange for dropdown and timeouts
<p>I have a dropdown menu which basically sends some data back to the server via onchange. The data is stored in the database and the primary table using seconds to avoid duplicates. What happens is if I scroll the dropdown via my keyboard, for example, using the up/down keys, my script returns an error because there is a duplicate entry now in the database.</p>

<p>here is part of the code for the dropdown in html</p>

<pre><code>onchange="GetmySQLData();"
</code></pre>

<p>My question is can i just do a setTimeout and would it be correct to use it in this format:</p>

<pre><code>onchange="setTimeout('GetmySQLData();', 1750);"
</code></pre>

<p>If you have a better approach, please feel free to let me know.</p>

<p>Thanks</p>
