Tag: html

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
55 votes
14 answers
2.3K views
jQuery document.createElement equivalent?

I'm refactoring some old JavaScript code and there's a lot of DOM manipulation going on. var d = do

avatar
Brianne
0 1 0 9
asked 07 September, 2021
55 votes
24 answers
2.5K views
Check if checkbox is checked with jQuery

How can I check if a checkbox in a checkbox array is checked using the id of the checkbox array? I am using t

avatar
Dorinda
0 1 0 9
asked 07 September, 2021
52 votes
13 answers
658 views
How to change the href attribute for a hyperlink using jQuery

How can you change the href attribute (link target) for a hyperlink using jQuery?

avatar
Louetta
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
58 votes
21 answers
2.7K views
Where should I put <script> tags in HTML markup?

When embedding JavaScript in an HTML document, where is the proper place to put the <script> tags and in

avatar
Dorian
0 1 0 9
asked 07 September, 2021
53 votes
15 answers
1.1K views
How to move an element into another element?

I would like to move one DIV element inside another. For example, I want to move this (including all children)

avatar
Bryan
0 1 0 9
asked 07 September, 2021
55 votes
20 answers
2.2K views
Get the size of the screen, current web page and browser window

How can I get windowWidth, windowHeight, pageWidth, pageHeight, screenWidth, screenHeight, pageX, pageY, scree

avatar
Tana
0 1 0 9
asked 07 September, 2021
56 votes
19 answers
2.1K views
Disable/enable an input with jQuery?

$input.disabled = true; or $input.disabled = "disabled"; Which is the standard way? And, conversely, how

avatar
Rudolf
0 1 0 9
asked 07 September, 2021
55 votes
30 answers
2.3K views
Add table row in jQuery

What is the best method in jQuery to add an additional row to a table as the last row? Is this acceptable? $

avatar
User demo
0 1 0 9
asked 07 September, 2021
58 votes
30 answers
1.4K views
How can I know which radio button is selected via jQuery?

I have two radio buttons and want to post the value of the selected one. How can I get the value with jQuery?

avatar
Luis
0 1 0 9
asked 07 September, 2021
47 votes
21 answers
1.9K views
Is it possible to apply CSS to half of a character?

What I am looking for: A way to style one HALF of a character. (In this case, half the letter being transpare

avatar
Clarice
0 1 0 9
asked 07 September, 2021
56 votes
30 answers
2.3K views
How can I change an element&apos;s class with JavaScript?

How can I change the class of an HTML element in response to an onclick or any other events using JavaScript?

avatar
Dorinda
0 1 0 9
asked 07 September, 2021
61 votes
30 answers
1.2K views
Which "href" value should I use for JavaScript links, "#" or "javascript:void(0)"?

The following are two methods of building a link that has the sole purpose of running JavaScript code. Which i

avatar
Lynette
0 1 0 9
asked 07 September, 2021
60 votes
30 answers
1.4K views
How do I check whether a checkbox is checked in jQuery?

I need to check the checked property of a checkbox and perform an action based on the checked property using j

avatar
Charis
0 1 0 9
asked 07 September, 2021
56 votes
30 answers
2.3K views
How do you parse and process HTML/XML in PHP?

How can one parse HTML/XML and extract information from it?

avatar
Robt
0 1 0 9
asked 07 September, 2021
61 votes
5 answers
2.9K views
Inline SVG vs SVG File Performance

I'm currently building a website aimed at modern browsers and mobile devices. In terms of performance, is

avatar
Vi
0 1 0 9
asked 07 September, 2021
59 votes
8 answers
1.8K views
How to make ng-bind-html compile angularjs code

I am working with angularjs 1.2.0-rc.3. I'd like to include html code into a template dynamically. For th

avatar
Benton
0 1 0 9
asked 07 September, 2021
52 votes
10 answers
1.1K views
HTML button opening link in new tab

So this is the simple code for the button to open a certain link <button class="btn btn-su

avatar
Louetta
0 1 0 9
asked 07 September, 2021