angularjs - Can i populate specific form when a item is selected from the combobox -
when select item combobox, want populate appropriate form user input. possible? e.g. if user selects 'address' combo box, want populate form address fields else if user selects phone, want populate form enter phone details.
you should able detect selected option in combobox , load appropriate form inside div.
<select ng-model="combo"> <option value="address">address</option> </select> <div id='form-area'></div> <script> // inside angularjs controller if($scope.combo === 'address') { $('form-area').html('form code here...'); } </script>
Comments
Post a Comment