Jump to content

how to validate date in the combo box ??? jan = 31 , feb = 29 , march = 31....


alvinchua

Recommended Posts

<form action="">

<SELECT name='month' id='selectMonth'>

<OPTION VALUE="0" SELECTED >January</OPTION>

<OPTION VALUE="1">February</OPTION>

<OPTION VALUE="2">March</OPTION>

<OPTION VALUE="3">April</OPTION>

<OPTION VALUE="4">May</OPTION>

<OPTION VALUE="5">June</OPTION>

<OPTION VALUE="6">July</OPTION>

<OPTION VALUE="7">August</OPTION>

<OPTION VALUE="8">September</OPTION>

<OPTION VALUE="9">October</OPTION>

<OPTION VALUE="10">November</OPTION>

<OPTION VALUE="11">December</OPTION>

</SELECT>

 

<SELECT name='day' id='selectDay'>

<OPTION VALUE="1" SELECTED >1</OPTION>

<OPTION VALUE="2">2</OPTION>

<OPTION VALUE="3">3</OPTION>

<OPTION VALUE="4">4</OPTION>

<OPTION VALUE="5">5</OPTION>

<OPTION VALUE="6">6</OPTION>

<OPTION VALUE="7">7</OPTION>

<OPTION VALUE="8">8</OPTION>

<OPTION VALUE="9">9</OPTION>

<OPTION VALUE="10">10</OPTION>

<OPTION VALUE="11" >11</OPTION>

<OPTION VALUE="12">12</OPTION>

<OPTION VALUE="13">13</OPTION>

<OPTION VALUE="14">14</OPTION>

<OPTION VALUE="15">15</OPTION>

<OPTION VALUE="16">16</OPTION>

<OPTION VALUE="17">17</OPTION>

<OPTION VALUE="18">18</OPTION>

<OPTION VALUE="19">19</OPTION>

<OPTION VALUE="20">20</OPTION>

<OPTION VALUE="21">21</OPTION>

<OPTION VALUE="22">22</OPTION>

<OPTION VALUE="23">23</OPTION>

<OPTION VALUE="24">24</OPTION>

<OPTION VALUE="25">25</OPTION>

<OPTION VALUE="26">26</OPTION>

<OPTION VALUE="27">27</OPTION>

<OPTION VALUE="28">28</OPTION>

<OPTION VALUE="29">29</OPTION>

<OPTION VALUE="30">30</OPTION>

<OPTION VALUE="31">31</OPTION>

</SELECT>

 

if the user selected april the combo box for days will automatically refresh it to only 30 days available ... if the user select January it will refresh back to 31 days...

 

pls advice.. thanks

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.