In this scenario only the Javascript function works. But I want to run JavaScript function(onclick event)
and form action
(my PHP backend) at the same time, how to do that?
<tr id="tr4" class="table-danger">
<td>Geethan</td>
<td>
<form action='include/action.php?user_id=3' method='post'>
<input id="tr4_btn" class="btn btn-warning" type="button" value="Take action" onclick="takeaction(this.id,'tr4','tr4_i')" />
<i id="tr4_i" class="fa " style="color:green;"></i>
</form>
</td>
</tr>