Selecting a .class inside an .id - javascript
So I am the newest person to javascript and I have an .class inside a
couple of Div.id's and am unable to access the id successfully with my
.css formatting. Here is my structure.
<div id="mainColumn">
<div id="SpotlightContainer">
<div id="SpotlightText">
<div class="Title"></div>
</div>
</div>
</div>
here is how I try to acces it in JQuery,
$('div.mainColumn div.SpotlightContainer div.SpotlightText
div.Title').html(data[0].title);
I can see the data[0].title coming through in Chrome, so I know that isn't
the issue. Can someone please point out where I am going wrong. Thanks.
No comments:
Post a Comment