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

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -