HI in this code only the first button on click event is working but when i click on 2nd nothin happen i don't want to use input:button
coz i have multiple button on page..
<table border="1">
<tr>
<td>Name</td>
<td>Email</td>
<td>phone</td>
<td>Btn</td>
</tr>
<tr>
<td>user 1</td>
<td>user1@mail.com</td>
<td>123456</td>
<td>
<button id="btnids" data-id="a1" value="a1">active</button>
</td>
</tr>
<tr>
<td>user 1</td>
<td>user1@mail.com</td>
<td>123456</td>
<td>
<button id="btnids" data-id="a2" value="a2">active</button>
</td>
</tr>
<tr>
<td>user 1</td>
<td>user1@mail.com</td>
<td>123456</td>
<td>
<button id="btnids" data-id="a3" value="a3">active</button>
</td>
</tr>
</table>
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#btnids").click(function(){
alert($(this).val());
});
});
</script>