
Originally Posted by
jpbro
Can you post the HTML source for that page? I will show you what to put on the server side.
sorry for late response
this is my html example
Code:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" />
<title>Aligning Buttons</title>
</head>
<body>
<h1 style="color:green;text-align:center;">NumberSender</h1>
<div class="container">
<div class="text-left">
<button type="button">1</button>
<button type="button">2</button>
<button type="button">3</button>
<button type="button">4</button>
<button type="button">5</button>
<button type="button">6</button>
</div>
<table width="500" border="1">
<tr>
<th>ROW #</th>
<th>COLOR #</th>
</tr>
<tr>
<td>ROW 1</td>
<td bgcolor="red">COLOR 2</td>
</tr>
<tr>
<td>ROW 2</td>
<td bgcolor="green">COLOR 5</td>
</tr>
</table>
</body>
<div>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js">
</script>
</body>
</html>
what scenario I'm need:
1) user click any button on the page
2) server receive this number of the button and insert row into table with color
3) user see updated page