@subhashp wrote:
I would like to set the 'value' of a input field in the form and not via controller. e.g. I want to set the value of below hidden field 'searchTyp' to 'app'. How can I do it? Kindly help.
<form name="appSearchForm" novalidate=""> <input id="searchType" type="text" name="searchTyp" ng-model="search.Typ" value="app" style="display: none;"> <ion-header-bar class="bar bar-subheader item-input-inset"> <label class="item-input-wrapper"> <input id="searchKey" type="search" placeholder="Enter first 4 chars of Appellant" ng-model="search.App" autocorrect="off" name="searchApp" ng-minlength="4"> <button class="button button-clear" ng-click="clearSearch()">X</button> </label> <button class="button button-clear" ng-click="searchJ()">Search</button> </ion-header-bar> </form>
Posts: 4
Participants: 2