I have a PHP while loop where I am generating #id dynamically.
Example :
<?php
$i=1;
while ($row = mysqli_fetch_array($result)):
?>
<tr>
<td class='hashtag' id='status<?php echo $i; ?>'>status value</td>
</tr>
<?php
$i++;
endwhile:
?>
The status id are generating like this : status1, status2, status3 etc...
I want all these Id's in my JS code ON LOAD for displaying it into the modal dialog.
Example :
<script type="text/javascript">
$(document).ready(function(){
$("#status1");
$("#status2");
$("#status3");
.
.
and so on as per the php while loop.
});
</script>
How can I achieve this?