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

  • SEARCH
  • Home
  • 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 4595448
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T22:58:18+00:00 2026-05-21T22:58:18+00:00

I am developing a online website design system like yola.com. I want to get

  • 0

I am developing a online website design system like yola.com.

I want to get a list of applied CSS properties with their values to any DOM element.

For example, I have a h1 tag and its css changes randomly by jquery ui when resizing and dragging, also changes its text decoration and also the text contents by tinymce and so on.

I have a save button in this page. When I click save, I want to save all these changes in to a database using php. Now my aim is to know only the css and inner text content of each element. How can I do this?

  • 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-05-21T22:58:19+00:00Added an answer on May 21, 2026 at 10:58 pm

    In javascript you can find the current class name of an element by calling

    element.getClassName();
    

    In at least current versions of firefox and chrome you can find the directly applied styles with

    element.getAttribute("style");
    

    This will include programmatically applied positions, e.g. on http://jqueryui.com/demos/draggable/ you can do

    document.getElementById('draggable').getAttribute("style");
    "position: relative; "
    

    and after dragging the draggable around, if you do it again, you’ll get the current position:

    document.getElementById('draggable').getAttribute("style");
    "position: relative; left: 63px; top: 39px; "
    

    You can get the contents of the element with element.innerHTML. That, plus the style plus the classname will probably be enough to serialise an element correctly. If you want to serialise a full tree of complex components, it would be a slightly more complicated process – innerHTML will only work well for relatively simple elements.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing an Online Judge System,like SGU http://acm.sgu.ru/ I wangt to obtain the accurate
I am developing an online listen music website, on that I want to play
Developing a website and just trying to get back into the swing of (clever)
I am currently developing an online Auction system using ASP.NET 3.5 and SQLServer 2008.
i am developing a online test website using PHP. i have set time limit
I am developing a website for which I need an online C/C++ compiler for
I am developing a online reputation website and i am interested in knowing how
I am developing a website/online-service for document collaboration that runs on JBoss. During testing
I am developing online shopping system. Only UK customers can place an order from
I am developing online shopping system. This is how the product structure work: There

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.