samedi 24 juin 2017

how to develop javascript event handle in laravel form

I need develop form with input text box, radio buttons and optional values in My laravel app. this is My simple form

<html>
<head>
<title>Form Generation</title>
<body>
<form action="welcome.php" method="post">
Name: <input type="text" name="name"><br><br>

<input type="radio" name="gender" value="male" checked> Male<br>
<input type="radio" name="gender" value="female"> Female<br>

<br><br>

<select name="cars">
    <option value="volvo">Volvo XC90</option>
    <option value="saab">Saab 95</option>
    <option value="mercedes">Mercedes SLK</option>
    <option value="audi">Audi TT</option>
  </select>

<br><br>

<input type="submit">
</form>


</body>
</head>
</html> 

I need initial show only input box in My page

Name: <input type="text" name="name"><br><br> 

and then when cursor select to the input box and enter some values I need show (load) other items of the form

<input type="radio" name="gender" value="male" checked> Male<br>
<input type="radio" name="gender" value="female"> Female<br>

<br><br>

<select name="cars">
    <option value="volvo">Volvo XC90</option>
    <option value="saab">Saab 95</option>
    <option value="mercedes">Mercedes SLK</option>
    <option value="audi">Audi TT</option>
  </select>

<br><br>

<input type="submit">
</form>

how can I do this?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2u0ql4l
via IFTTT

Aucun commentaire:

Enregistrer un commentaire