How to make javascript dynamic?

Home / Uncategorized / How to make javascript dynamic?

I want to move document.getElementById("b") checked in a loop.Is it possible? then how can I make it happen.Please help me in this.

query("SELECT * FROM `template_design` WHERE `panel` = ‘front’");

if($query->num_rows > 0){
while($row = $query->fetch_assoc()){
$im_id = $row[‘id’];
$images = "images/" .$row[‘image’]. "";

" name="?php echo ‘radio_’.$im_id; ?>" onClick="changeSrc()">

I want to repeat it in a loop ,as fradio0 i.e $front will increment ,javascript also repeat in a loop to match each. Thanks in advance

You can pass parameters with your id for example:" name="" onClick="changeSrc()">
and use it on script like

Read more

Leave a Reply

Your email address will not be published. Required fields are marked *