Linked Questions

1 vote
1 answer
53 views

Having a problem with document.getElementById in IE 11 to retrive a div who has a long url as id. Example : <div id="http://localhost:8084/group/control_panel/manage?p_auth=2kVqRblu&...
joey rohan's user avatar
  • 3,586
-8 votes
2 answers
108 views

What will be the impact, if we add some extra space in id or class in HTML. Like if we write like this, <div class=" class1" id=" id">This is a div</div> Will the CSS ...
Ashutosh Ranjan Jha's user avatar
-2 votes
1 answer
48 views

I have two html code snippets: #header { text-align: center; font-size: 14px; font-family: "Gill Sans MT"; margin-top: 30px; } #123 { text-align: center; font-size: 14px; ...
Nicholas's user avatar
  • 3,767
0 votes
0 answers
29 views

I declared a div after header and nav, and styled it then I declared another in div inside that, now I'm trying to style this inner div but it doesn't work I don't know why here is html code <...
Nima Bahar's user avatar
0 votes
0 answers
24 views

Essentially, I'm using JavaScript to add <li> tags with content inside them dynamically to a <ul>. This works fine and great, except when I try to select an element inside that <li> ...
ColtTheNark's user avatar
695 votes
13 answers
754k views

Is this: var contents = document.getElementById('contents'); The same as this: var contents = $('#contents'); Given that jQuery is loaded?
Phillip Senn's user avatar
  • 47.8k
588 votes
13 answers
455k views

When using the HTML <input> tag, what is the difference between the use of the name and id attributes especially that I found that they are sometimes named the same?
Simplicity's user avatar
  • 49.4k
148 votes
11 answers
110k views

Does anyone know how to select an item in the DOM by ID with jQuery, when that ID has a space? For example, the ID of my item would be <div id="content Module">Stuff</div> How would I ...
Jeff Davis's user avatar
  • 4,817
189 votes
8 answers
98k views

Given the following classes and controller action method: public School { public Int32 ID { get; set; } publig String Name { get; set; } public Address Address { get; set; } } public class ...
Doug Wilson's user avatar
  • 4,264
135 votes
8 answers
93k views

<div id="example-value"> or <div id="example_value">? This site and Twitter use the first style. Facebook and Vimeo - the second. Which one do you use and why?
Emanuil Rusev's user avatar
82 votes
13 answers
327k views

How can I get a collection of elements by specifying their id attribute? I want to get the name of all the tags which have the same id in the html. I want to use ONLY getElementById() to get an ...
Rajan P's user avatar
  • 845
52 votes
22 answers
64k views

When using divs when is it best to use a class vs id? Is it best to use class, on say font variant or elements within the html? Then use id for the structure/containers? This is something I've ...
Paul's user avatar
  • 597
98 votes
8 answers
246k views

I have the following code: <ul class="nav nav-tabs"> <li><a href="#aaa" data-toggle="tab">AAA</a></li> <li><a href="#...
user2607411's user avatar
156 votes
3 answers
658k views

I was trying out jquery with this example: $(document).ready(function(){ $("button").mouseover(function(){ $("p#44.test").css("background-color","yellow"); $("p#44.test").hide(...
aWebDeveloper's user avatar

15 30 50 per page
1
2
3 4 5
41