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 9137757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:10:02+00:00 2026-06-17T09:10:02+00:00

Current I have the following div <div class=tag-header> <?php echo $row->name; ?> </div> And

  • 0

Current I have the following div

 <div class="tag-header">
    <?php echo $row->name; ?>
 </div>

And I add the contenteditable to the div with .attr

$('.tag-header').attr("contenteditable", "true");

But my problem is how to pass the value to php and post to database?
*NOTE: I’m not ready to use ajax just normal php submit.

  • 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-17T09:10:03+00:00Added an answer on June 17, 2026 at 9:10 am

    Added a demo here

    Update html to

    <form>
    <div class="tag-header">
        <?php echo $row->name; ?>
     </div>
    <input type="hidden" id="tagval" />
    </form>
    

    Then use the focusout event to bind

    $(".tag-header").focusout(function() {
       $("#tagval").val($(".tag-header").text());
    });
    

    Submit the form to get the value in PHP.

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

Sidebar

Related Questions

I have a following structure <div> <ul id='t1'> <li id='l1' contenteditable='true' class='editable'> Lorem ipsum
I have the following HTML code: <div id=filter-bar> <ul> <li><a href=#image class=current><?php _e('Image','sofa'); ?></a></li>
I have the following HTML: <div class=menu> <a class=main-nav-item href=home>home</a> <a class=main-nav-item-current href=business>business</a> <a
I current have a need to have a contenteditable div tag inside an li
I have a field like the following: <div class=control-group> <label class=control-label for=lname>Last Name</label> <div
I have the following HTML: Current HTML <div id=testContainer> <a href=testPage.htm target=_top> <img src=/res/images/testImage_M.jpg?lc=en-GB&lv=5.jpg
In the following code, I have a div around each row in a table
I have the following HTML, and I need to add a class to both
I have a CSS with the following attribute to the body tag and header:
I have the following markup: <div class=calendar> <div class=heading> <a class=previous-month href=javascript:;></a> <h1 class=hmc>February&nbsp;2012</h1>

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.