By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,806 Members | 1,350 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,806 IT Pros & Developers. It's quick & easy.

Is it possible to get (and manipulate) this value?

P: n/a
Hi,

Let's assume for a moment that I have well-formed HTML. I have a
couple of places where I would like to extract the value of the node

<td class="sidebarText" id="title1">My cell title</td>

and

<span class="moduleTitle" id="spanTitle1">Span Title 1</span>

and actually change the value. Is this possible and what is a cross-
browser way in which this can be done?

Thanks, - Dave

Feb 12 '07 #1
Share this Question
Share on Google+
2 Replies

P: n/a
VK
On Feb 13, 2:12 am, "laredotorn...@zipmail.com"
<laredotorn...@zipmail.comwrote:
Hi,

Let's assume for a moment that I have well-formed HTML. I have a
couple of places where I would like to extract the value of the node

<td class="sidebarText" id="title1">My cell title</td>

and

<span class="moduleTitle" id="spanTitle1">Span Title 1</span>

and actually change the value. Is this possible and what is a cross-
browser way in which this can be done?
Quick and durty:

<button type="button" onclick="
document.getElementById('spanTitle1').innerHTML = 'Hello world!';
">Change content</button>

Insert onto your page and click.
Feb 13 '07 #2

P: n/a
la***********@zipmail.com said the following on 2/12/2007 6:12 PM:
Hi,

Let's assume for a moment that I have well-formed HTML. I have a
couple of places where I would like to extract the value of the node

<td class="sidebarText" id="title1">My cell title</td>

and

<span class="moduleTitle" id="spanTitle1">Span Title 1</span>

and actually change the value. Is this possible and what is a cross-
browser way in which this can be done?
Use DynWrite from the group FAQ.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Feb 13 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.