aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Question .html() function Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Question .html() function" Watch "Question .html() function" New topic
Author

Question .html() function

Naveen puttu
Ranch Hand

Joined: Sep 15, 2009
Posts: 88
Hi

I have done something like this



How would i get the html value (someBlah here in this case) has been set to the anchor tag .
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
I have no clue what you are asking.

Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60046
    
  65




t3rms? Really?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Naveen puttu
Ranch Hand

Joined: Sep 15, 2009
Posts: 88
The above code would generate

I want to get that string "someBlah" and do fiddle with that value
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60046
    
  65

Already answered.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Are you fiddling with it when you are adding it to the page? Shouldn't you already have the value at that point since you are adding it in?

Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60046
    
  65

True, but in most functionally-oriented jQuery-using code, it's unlikely that a reference to the content would be maintained anywhere.
Naveen puttu
Ranch Hand

Joined: Sep 15, 2009
Posts: 88
thanks bear and eric
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Question .html() function
 
Similar Threads
How to check canvas is empty or not in javascript
Not able to add submit button in HTML using jquery
jQuery- Verify I selected right element and i am unable to remove it?
jQuery advantages over javascript
focusing on an input element with jquery