The solution to updating a form field after submission, for example setting the name field to "", is:
$('input[name="name"]').val("");[ To retrieve a field value use
var email = $(“myfield“).val(); where myfield is an id. ]
Here is a trivial example of using a php function ( in this case just returning server time ) to place a value directly into a form field - not actually an EasyUI form in this case but the principal is the same for all jQuery forms.
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$.post("post_receiver2.php", { },
function(data,status){
alert("Data: " + data + "\nStatus: " + status);
$('input[name="fname"]').val(data);
});
});
});
</script>
</head>
<body>
<form id='userForm'>
<div><input type='text' name='fname' placeholder='Firstname' /></div>
</form>
<button>Submit !</button>
</body>
</html>
Here is the code in post_receiver2.php
This means that, in a volume input situation, it is possible to retain selected field values and update read only fields with values drawing on php power.