javascript - auto populate date-time from the selection of location in html field -


i have 2 html fields 1 location(country) drop down , other field date-time drop down. when user selects country location drop down want current date time auto populated respect country selected dropdown.

how can done?

html code:

<html> <body>     <form>         <tr>             <td>                 <label for="location">location :</label>             </td>             <td>                 <select name="location">                     <option value="india">india</option>                     <option value="us">us</option>                     <option value="japan">japan</option>                 </select>             </td>         </tr>         <tr>             <td>                 <label for="date">date & time :</label>             </td>             <td>                 <input type="text" name="date">             </td>         </tr>     </form> </body> 

thanks in advance.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -