Questions tagged [selected]

This is a general tag used when talking about one or more GUI element(s) that is/are selected by the user.

This is a general tag used when talking about one or more GUI element(s) that is/are selected by the user. No selected element has to have the focus.

881 questions
4301
votes
42 answers

Setting "checked" for a checkbox with jQuery

I'd like to do something like this to tick a checkbox using jQuery: $(".myCheckBox").checked(true); or $(".myCheckBox").selected(true); Does such a thing exist?
tpower
  • 53,004
  • 18
  • 65
  • 99
159
votes
15 answers

UIButton: set image for selected-highlighted state

I set an images for button's states Normal,Highlighted and Selected, but when the button in selected state and I press/highlight it I didn't see my highlighted image but just grayed picture. Is it possible to set an image for highlighted state when…
user478681
  • 8,205
  • 4
  • 24
  • 33
142
votes
9 answers

How to set a selected option of a dropdown list control using angular JS

I am using Angular JS and I need to set a selected option of a dropdown list control using angular JS. Forgive me if this is ridiculous but I am new with Angular JS Here is the dropdown list control of my html In this case, "Orange" shows as the selected item. I would have expected making the selected…
Travis Beale
  • 4,996
  • 7
  • 31
  • 34
31
votes
5 answers

jQuery remove selected option from this

first post here, I come in peace :) I've searched but can't quite find what I'm after. I am trying to manipulate the selected option of a select box. Can someone please explain why this works: $('#some_select_box').click(function() { …
odavy
  • 455
  • 1
  • 4
  • 10
31
votes
6 answers

How to set the 'selected option' of a select dropdown list with jquery

I have the following jquery function: $.post('GetSalesRepfromCustomer', { data: selectedObj.value }, function (result) { alert(result[0]); $('select[name^="salesrep"]').val(result[0]); }); result[0] is a value that I want to set as the…
Smudger
  • 9,353
  • 27
  • 97
  • 178
30
votes
24 answers

Spinner does not show selected value

I have implemented the spinner by populating the array list through database.I can get and show the array list in my spinner array adapter but if I select the item in spinner it does not shown in spinner?What I had mistake here? Here is my code, …
Jolly
  • 437
  • 1
  • 6
  • 11
1
2 3
58 59