Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7844467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T16:52:58+00:00 2026-06-02T16:52:58+00:00

I have an HTML Panel , where i am saving some text and then

  • 0

I have an HTML Panel , where i am saving some text and then i want to access some specific HTML Panel’s node and change its attribute ,

This is what i am doing

      HTMLPanel htmlText;
      htmlText.setInnerHTML(result.getText());
      Node x  = htmlText.getChild(1);

I am getting this javascriptObject$ as the value of x (If i see in in Debug)

     <span class="my-wrapper"><span class="myText">testing text</span><span class="myNumber"> (2) </span></span>

What i need is to get only this text “testing text” and change its color.

is it possible ?

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T16:53:00+00:00Added an answer on June 2, 2026 at 4:53 pm

    I think that you may want to use GWTQuery for this type of thing.

    HTMLPanel htmlText;
    htmlText.setInnerHTML(result.getText());
    //Node x  = htmlText.getChild(1);
    
    String value = $(".myText", htmlText).text();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some HTML which looks like this: <body> <div id=panel1 class=panel> Panel 1
I have html-file. I have to replace all text between this: [%anytext%]. As I
I have HTML + CSS text. I need some lib with simple function like
I have some html code, so: <div class=ui-tabs-panel> <div class=dataTables_wrapper> <div> <button>Add Whatever</button> </div>
I have the following HTML: <div data-role=page id=some> <p>Hello world</p> <div data-role=panel id=panel> <p>I'm
I have this HTML structure and want to convert it to an accordion. <div
I have some basic HTML... <div id=panel> <h3>abc</h3> <address>a</address> <address>b</address> <address>c</address> </div> ...and CSS...
Hello i have an HTML Code like this <div id=top> <div class=panel> <h1>toppanel</h1> <p>Content
I have different HTML files. I want to open, edit and then save changes
I have an existing panel where I set the html manually with a variable

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.