regex id for button
regex id for button
how can i assign code to id starting with "
d_" for exampe when i clicked button which id start with
d_ some function will run
- $(document).ready(function(){
- $( //id starting with d_).bind("click",function(){
- //ANY CODES
-
- })
- })
- $i=0;
while ($row = mysql_fetch_array($result)) {
$i++;
if ($row["OrderID"] != '') {
echo '
<tr class="tr'.$i.'">
<td><div>' . $i . '</div></td>
<td><div>' . $row["CustomerID"] . '</div></td>
<td>
<div>
<button id="b_'.$i.'" >OK </button>
<button id="d_'.$i.'" >del </button>
</div>
</td>
</tr>