javascript negative number in pull down
<p>When I click "EDIT" link on a specific user it is suppose to tell me how many vacation days he/she has left... the Edit link is like this:</p>

<pre><code>print "&lt;a href=\"javascript:editUser('$data[uid]','$data[vacationdays]')\"&gt;Edit&lt;/a&gt;\n";
</code></pre>

<p>So when i click EDIT on ADMIN account:
javascript:editUser('Admin','-3.0') is the actual values </p>

<p>The javascript:</p>

<pre><code>&lt;script language="javascript"&gt;
    function editUser(uid, vacationdays) {
    document.userForm.uid.value = uid;
    document.userForm.vacationdays.value = vacationdays;
    document.location.href = "#AddEdit";
    }
&lt;/script&gt;
</code></pre>

<p>The website PHP/HTML:</p>

<pre><code>Vacation days: &lt;select name="vacationdays" id="vacationdays" /&gt;
               &lt;?php 
               for ($i=-30.5;$i&lt;30.5;$i+=0.5)
               echo "&lt;option value=\"$i\"&gt;$i&lt;/option&gt;\n";
               ?&gt;
               &lt;/select&gt;
</code></pre>

<p>The problem is only with negative numbers (-1 or -2...etc) not showing up in the form pull down menu. Positive numbers show up no problem.</p>

<p>Example positive number:
<img src="http://i.stack.imgur.com/inzr6.png" alt="enter image description here"></p>

<p>Example negative number: <img src="http://i.stack.imgur.com/jMnAN.png" alt="enter image description here"></p>

<p><em><strong></em> i dont want to be able to select a negative values from the pull down.. but if the value is negative i just want it to show once and when you click on the pull down you can only select positive numbers **</strong></p>

<p>If i change the pulldown to a TEXTFIELD it works perfectly fine with negative numbers...weird?</p>
