I am using AJAX to Call my Web services. Already a HTML table is generated in the screen with data's in it.
This is the view form. Every time the data is generated when the user creates a new one.
<h2>View country</h2> </br>
<div>
<div class="table" id="tab1">
<table class="basic-table" id="mytable">
<thead>
<tr>
<th scope="col">id</th>
<th scope="col">firstName</th>
<th scope="col">lastName</th>
<th scope="col">licenseId</th>
<th scope="col">telephone</th>
<th scope="col">email</th>
</tr>
</thead>
</table>
<label for="search"> <strong>Search Box</strong>
</label> <td alihn="left"><input type="text" id="searchTerm" size="20" width="20" onkeyup="doSearch()" />
</div>
</form>
My answer is to pull the data from the above table & to show it in a form which is editable. I am getting the value in Json from the server, so i tried with the below
txtStr += '
'+json[i].id+' '+json[i].firstName+' '+json[i].lastName+' '+json[i].licenseId+' '+json[i].telephone+' '+json[i].email+' ';