Below is my code. PHP code
<?php
include('simple_html_dom.php');
$id=$_GET['id'];//Some URL like index.php
$dom = file_get_contents($id);
$html = file_get_html($id);
?>
<html lang="en" class="wide smoothscroll wow-animation">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Update Content</title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="format-detection" content="telephone=no"/>
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/style1.css">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css">
</head>
<div class="container">
<form class="form-horizontal">
<div class="form-group">
<label class="control-label col-sm-2" for="email">Page Name</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="page_name" value="<?php echo $filename;?>" disabled>
</div>
</div>
<?php
foreach($html->find('meta[name=keywords]') as $element) {
?> <div class="form-group">
<label class="control-label col-sm-2" for="pwd">Meta Keyword</label>
<div class="col-sm-10">
<textarea class="form-control" id="meta_keyword"><?php echo $element->content; ?></textarea>
</div>
</div>
<?php }
foreach($html->find('meta[name=description]') as $element) {
?>
<div class="form-group">
<label class="control-label col-sm-2" for="pwd">Meta Description</label>
<div class="col-sm-10">
<textarea class="form-control" id="meta_description"><?php echo $element->content; ?></textarea>
</div>
</div>
<?php } foreach($html->find('title') as $element) {?>
<div class="form-group">
<label class="control-label col-sm-2" for="pwd">Title</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="title" value="<?php echo $element->innertext; ?>">
</div>
</div>
<?php } foreach($html->find('h1') as $element) {?>
<div class="form-group">
<label class="control-label col-sm-2" for="pwd">H1</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="h1" value="<?php echo $element->innertext; ?>">
</div>
</div>
<?php } foreach($html->find('h2') as $element) {?>
<div class="form-group">
<label class="control-label col-sm-2" for="pwd">H2</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="h2" value="<?php echo $element->innertext; ?>">
</div>
</div>
<?php } foreach($html->find('h3') as $element) {?>
<div class="form-group">
<label class="control-label col-sm-2" for="pwd">H3</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="h3" value="<?php echo $element->innertext; ?>">
</div>
</div>
<?php } foreach($html->find('h4') as $element) {?>
<div class="form-group">
<label class="control-label col-sm-2" for="pwd">H4</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="h4" value="<?php echo $element->innertext; ?>">
</div>
</div>
<?php } foreach($html->find('h5') as $element) {?>
<div class="form-group">
<label class="control-label col-sm-2" for="pwd">H5</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="h5" value="<?php echo $element->innertext; ?>">
</div>
</div>
<?php } foreach($html->find('h6') as $element) {?>
<div class="form-group">
<label class="control-label col-sm-2" for="pwd">H6</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="h6" value="<?php echo $element->innertext; ?>">
</div>
</div>
<?php } ?>
<br/><br/>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button class="btn btn-lg btn-primary" id="content_submit" type="button" style="color:#fff">Submit</button>
</div>
</div>
</form>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script><script src="js/jquery.form.js"></script>
Refrence I used for this http://simplehtmldom.sourceforge.net/
Here I can Get all HTML elements with that code.And I want to modify the Same HTML element with Updated Text.But I don't get any reference from anywhere.Please is my page screenshot.
If I change something in that h3 textbox it will change in about.php <h3>New text</h3> How can I do this If anyone knows the solution Please help me to get out of this problem.Thanks in advance.

<script>$(function() { $("#h3").val("xxx"); }</script>. Please read this minimal reproducible example