I have my HTML like this:
<table>
<caption class="my_caption">Table 1.1: TABLE CAPTION</caption>
<tr>...</tr>
<tr>...</tr>
...
I need to get the caption text so I can make some string comparison. I've tried doing .val(), .text(), .html() and .value but none of them work.
Thanks for your help.
EDIT:
I actually have a few of those...
Hi All,
Please help me with this question I am trying to change the source of an image dynamically.
...
Note:
Using HTML::TreeBuilder or other suitable method
Question:
Using Perl with LWP, for the following HTML, how to search for the literal string whatever between the start tag and end tag div and then get all text between the aforementioned start and end tag, while adhering to formatting text tags
<div id="foo" class="blah">
<tt...
Hi
1)
I somewhat understand descendant selectors, but the more complex examples are giving me some troubles. For example:
#content .alternative p
Should this rule apply to p elements that are descendants of elements E, where E are :
descendants of element #content and
are also members of class .alternative
or should rule ...
Hi
I know that to calculate the specificity of a selector we use three numbers, where first number on the left is number of IDs, second number represents number of classes, pseudo-classes and attributes and third number represents number of elements.
I realize the following numbers are exaggerated … IDs are more specific than cl...
I am displaying an HTML page within another HTML page depending on which link is selected using the following function:
function loadProject(sel) {
var url = sel[sel.selectedIndex].value;
if(url) {
document.getElementById('projectContainer').innerHTML = '<' + 'object id="foo" name="foo" type="text/html" data="'+url+'"><...
Im experiencing strange behavior with Firefox and Dojo. I have a html page with these lines in the <head> section:
...
<script type="text/javascript" src="dojo.js" djconfig="parseOnLoad: true, locale: 'de'"></script>
<script type="text/javascript">
dojo.require("dojo.number");
</script>
...
Sometimes the page loads normally. But s...
Hi,
A friend has asked me for help with her website design. Although I know a fair amount about the basics behind HTML, XML, Php, ASP.Net, javascript, etc., I'm not really comfortable sitting down and coding from scratch. All of the work I do is in Java, C++, and so on.
My friend would like to add a vertically scrolling marquee to her ...
If I have a table like:
+-----------+-----------+-----------+
| PRIORITY | ITEM | COMPLETED |
+-----------+-----------+-----------+
| 0 | foo | YES |
+-----------+-----------+-----------+
| 1 | bar | |
+-----------+-----------+-----------+
| 2 | baz | YES |
+---------...
I am trying to imbed an image in my php emails and use as a signature. Meaning at the end of the email I want to have an image. I have tried many different combinations and for the most part am not getting the image to appear. Are there size restrictions for images or am I just doing in a way that is making it to heavy? A few things I ha...
On nydailynews.com when you copy and paste any text from the site, a snippet of text is appended.
Read more: http://www.nydailynews.com/#ixzz0aN123abc
How do they achieve this?
I have searched all of the external JavaScript files (jquery) and can't seem to find anything that corresponds. Is this something that could be done in ...
Normally I love to keep my HTML code clean, semantic and free from either Javascript or CSS. I include my .JS and .CSS files at the top, and layer functionality on top of the DOM elements.
The positives of this are:
Architectural separation of concerns
Graceful degradation where Javascript or CSS isn't supported
Search-engine friendli...
I was playing around with a Python-based HTML parser and parsed Stackoverflow. The parser puked on a line with
HTMLParser.HTMLParseError: bad end tag: "</'+'scr'+'ipt>", at line 649, column 29
The error points to the following lines of javascript in the site's source:
<script type="text/javascript">
document.write('<s'+'cript la...
I noticed that PHP seems to return only values of checked checkboxes. I would like to see a list of checkboxes, not just values of checked checkboxes. Is there a way to detect variables of unchecked boxes?
I asked because I want to be able to update settings. For example, I have a few options that are already checked but if an user dec...
How to know the correct selector/group of selector for any html element quickly? I'm working on very long bloated html code. and want to apply css on some specfic areas but it's taking to so much time to find a right css selector for any deeply nested html tag in tables.
for example
#id1 #id2 .class1 .class2 table.no1 tbody td
Is the...
Which is more semantic and valid?
<td>
<p>
content text
</p>
</td>
or
<td>
content text
</td>
...
<input type="file" value="Browse" name="avatar" id="id_avatar" />
I tried to modify the value, but it's not working. How to customize the button text?
...
Is there any defined behaviour if I have an HTML5 VIDEO tag but include neither a SRC attribute nor SOURCE tags inside the element? Would this still be valid HTML, and if so, what should the (HTML5 capable) browser do - ignore the element or display it's contents?
...
Hi,
I have installed HTML help workshop software (version 4.73) in my system and I have created a project.I could open the .chm file and view the files under it. However, I am not getting the search tab in .chm file. I am gettig stop menu item in "OPTIONS" menu.
Can any one tell me how to display search tab in .chm file?
Please tell me...
Hi Folks
i have a page with swf flash flash with width 300x250
<div id="flashswf"> ...some flash </div>
<div id="maxme">full screen</div>
i have a link called full screen and i need to maximize the flashswf div to fit the current browser maximum height and width
is this possible using jquery ? any ideas plz
...