Hi I have Table, I have to add a Button, beside the +, when ever I click on it.
The code is not working. I do not understand why.
function addProject() {
var r = $('<input/>').attr({
type: "button",
id: "field",
value: 'Project'
});
$("#idProject").parent().append(r);
}
<html>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<table>
<thead>
</thead>
<tbody>
<tr>
<td style="text-align:center; width:8%"></td>
<td style="text-align:center; width:8%"><input id="idProject" type="button" style="border:1px solid grey;text-align:center;background-color:#E0EEEE" value="+" onclick=addProject() /></td>
</tr>
</tbody>
</table>
</html>