Questions tagged [angularjs-select]

AngularJS Core `

Resources

113 questions
0
votes
1 answer

Is there a way to show previously selected option in a dropdown

I have a field to hold the…
0
votes
3 answers

ng-options orderBy value in key value pairs

I am not able to order a key value pair with respect to value in alphabetical order. The sample which I am using is, "week_days_short":[ {"key":"1","value":"Mon"}, {"key":"2","value":"Tue"}, {"key":"4","value":"Thu"}, …
0
votes
2 answers

How to reset ng-model variables to Null in AngularJS?

In AngularJS, I have the following sample code: Within my UI screen, I have a button…
tonyf
  • 34,479
  • 49
  • 157
  • 246
0
votes
1 answer

How to disable the selected option from other select list in angularjs?

I am setting up a select list From Year and To Year through ng-repeat and its working fine what I need is when I select an option from the list it should be disabled from another list. how to do using Angularjs? Thank You. HTML
  • Minh
    • 25
    • 9
  • 0
    votes
    1 answer

    equating variables which are coming from http calls

    I have a select tag with options populated by AngularJS. I am trying to select an option if it equals to another property in scope. Option values and scope property I am trying to compare are both coming from async http call. So there is always…
    Savas Karaduman
    • 107
    • 1
    • 8
    0
    votes
    1 answer

    unable to push string to listbox in angularjs

    When I'm trying to push a string(New) to a list box it was inserting as "undefined" to it. $http({ method: 'GET', url: 'http://xxx/api/Maintenance/GetAllFilteredItems', params: { Pt_Id: PtId} …
    0
    votes
    2 answers

    angularjs highlight the first item in select

    After the initial call to get the list of items (see below), I need get select the first item and get more details from my database. So after the items load into my select input I need to : Highlight the first item in listbox Pass that first…
    user11130182
    • 121
    • 10
    0
    votes
    1 answer

    Angularjs listbox control with single selection

    I'm just looking for a listbox with single selection so that each item can be selected from the listbox. But unable make it to single selection using the below code after make it to multiple = false. Can any body suggest me the code here. $http({ …
    0
    votes
    1 answer

    scope undefined for a text box

    I'm trying to bind value to a text box as per below code. But unable to do so and getting msg as Scope undefined during debugging and no error msg in developer tools. Issue in the $scope.onItemSelected and actually I've a response(data) from the…
    0
    votes
    0 answers

    selected="selected" applied for all select options in angularjs

    While switching between dropdown values in Angularjs Select directive, only the ng-model value is updated. But in browser console selected class wont be changed. How to change the selected value? see this example…
    0
    votes
    1 answer

    AngularJS retain selection after page refresh

    I have an select tag like this On team change I am retaining the value in LocalStorage and On…
    CSharped
    • 1,247
    • 4
    • 20
    • 49
    0
    votes
    0 answers

    Dynamic no of drop down list generate as per value in previous drop down list in AngularJS 1.x

    I have the following requirement: I have one drop-down list containing Employee records and which is getting filled on page load (JSON format). In that data list I have one value as Approval Level which is an integer value. Now I want that when I…
    0
    votes
    1 answer

    how to make the user input appear in drop down menu in angularjs

    I had created a dropdown menu with "other" option that enables the user to write an input then click on an add button to add it to the dropdown list. my problem is the user input is added to the dropdown menu but without being the "selected"…
    0
    votes
    1 answer

    How to display sections within a select dropdown using AngularJS?

    There is a select dropdown that currently displays a list of values (All Car Makes). The new requirement is to have sections within the same select dropdown, so that it shows a new set of values (Common Car Makes) under a section and along with the…
    Praveesh P
    • 1,399
    • 2
    • 25
    • 42
    0
    votes
    0 answers

    angular, select with dynamic disabled

    Now I am trying to select box with disabled. When $shop.products.product[i].productId is changed by selectBox, I want that value disabled in select box option. for example, if i select 3 in select box on second row, then select box option 1,3 are…
    hwyoo
    • 11
    • 3