Tag: select

56 votes
1 answers
1.5K views
How to use an XPath or CSS selector to look for a substring in Nightwatch testing

I'm having to do Nightwatch testing on the following element: <textarea id="xxxxxxxx-971-condition"

avatar
Georgie
0 1 0 9
asked 07 September, 2021
57 votes
2 answers
1.1K views
How to select an element&apos;s great-grandchild for CSS rules?

Given this HTML, how can I select rt-block to alter the CSS only when nested within rt-header as shown? <

avatar
Cortez
0 1 0 9
asked 07 September, 2021
55 votes
23 answers
2.9K views
@selector() in Swift?

I'm trying to create an NSTimer in Swift but I'm having some trouble. NSTimer(timeInterval: 1, targ

avatar
Majorie
0 1 0 9
asked 07 September, 2021
60 votes
8 answers
902 views
Working with select using AngularJS&apos;s ng-options

I have read about it in other posts, but I couldn't figure it out. I have an array, $scope.items = [

avatar
Corrin
0 1 0 9
asked 07 September, 2021
61 votes
25 answers
3K views
SQL update from one Table to another based on a ID match

I have a database with account numbers and card numbers. I match these to a file to update any card numbers to

avatar
Boyd
0 1 0 9
asked 07 September, 2021
61 votes
30 answers
1.7K views
How do I UPDATE from a SELECT in SQL Server?

In SQL Server, it is possible to insert rows into a table with an INSERT.. SELECT statement: INSERT INTO Table

avatar
Jefferey
0 1 0 9
asked 07 September, 2021
48 votes
1 answers
2.7K views
Function not working on c program selection sort

Why this function is not working here? It's not sorting on output. Suppose if I enter 1 4 2 the output is

avatar
Hildegard
0 1 0 9
asked 07 September, 2021
50 votes
20 answers
1.1K views
CSS selector for first element with class

I have a bunch of elements with a class name red, but I can't seem to select the first element with the c

avatar
Janella
0 1 0 9
asked 07 September, 2021
50 votes
10 answers
2.2K views
Which characters are valid in CSS class names/selectors?

What characters/symbols are allowed within the CSS class selectors? I know that the following characters are i

avatar
Scot
0 1 0 9
asked 07 September, 2021
67 votes
23 answers
713 views
Is there a "previous sibling" selector?

The plus sign (+) is for selecting the next sibling. Is there an equivalent for the previous sibling?

avatar
Solomon
0 1 0 9
asked 07 September, 2021
64 votes
30 answers
2K views
Is there a CSS parent selector?

How do I select the <li> element that is a direct parent of the anchor element? As an example, my CSS w

avatar
Clarice
0 1 0 9
asked 07 September, 2021
50 votes
30 answers
601 views
How to disable text selection highlighting

For anchors that act like buttons (for example Questions, Tags, Users, etc. which are located on the top of th

avatar
Corey
0 1 0 9
asked 07 September, 2021
58 votes
30 answers
1.2K views
How can I set the default value for an HTML <select> element?

I thought that adding a "value" attribute set on the <select> element below would cause the <option&g

avatar
Adolfo
0 1 0 9
asked 07 September, 2021
53 votes
30 answers
616 views
How do I make a placeholder for a &apos;select&apos; box?

I'm using placeholders for text inputs which is working out just fine. But I'd like to use a placeho

avatar
Thurman
0 1 0 9
asked 07 September, 2021
55 votes
5 answers
1.1K views
How to add an ORDER BY clause using CodeIgniter&apos;s Active Record methods?

I have a very small script to get all records from a database table, the code is below. $query = $this->db-

avatar
Rudy
0 1 0 9
asked 07 September, 2021
58 votes
22 answers
1.2K views
jQuery get specific option tag text

All right, say I have this: <select id='list'> <option value='1'>Option A

avatar
Elicia
0 1 0 9
asked 07 September, 2021
52 votes
14 answers
3K views
How can I select an element by name with jQuery?

I have a table column I’m trying to expand and hide. jQuery seems to hide the <td> elements when I sel

avatar
Vi
0 1 0 9
asked 07 September, 2021
60 votes
30 answers
1.8K views
What is the best way to add options to a select from a JavaScript object with jQuery?

What is the best method for adding options to a <select> from a JavaScript object using jQuery? I'

avatar
Yolando
0 1 0 9
asked 07 September, 2021
64 votes
19 answers
1.2K views
How can I get the ID of an element using jQuery?

<div id="test"></div> <script> $(document).ready(function() { alert($('#test&apos

avatar
Charis
0 1 0 9
asked 07 September, 2021
52 votes
14 answers
3K views
How can I select an element with multiple classes in jQuery?

I want to select all the elements that have the two classes a and b. <element class="a b"> So, only t

avatar
Virgil
0 1 0 9
asked 07 September, 2021