Answers for "nodejs store selected dropdown in variable"

0

nodejs store selected dropdown in variable

var selectedValue = user.schoolType;

<select class="form-control" id="schoolType" name="schoolType" value="
{{user.schoolType}}">

  <option value="none" selected="{{user.schoolType === 
this.value}}">None</option>
<option value="public" selected="{{user.schoolType === 
this.value}}">Public</option>
<option value="private" selected="{{user.schoolType === 
this.value}}">Private</option>
<option value="homeSchool" selected="{{user.schoolType === 
this.value}}">Home School</option>
 </select>
Posted by: Guest on October-15-2020

Code answers related to "nodejs store selected dropdown in variable"

Code answers related to "Javascript"

Browse Popular Code Answers by Language