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.
Added a demo here
Update html to
Then use the focusout event to bind
Submit the form to get the value in PHP.