Am using a while loop to out various elements each containing rows from a mysql database. I was able to make each div have different id however, i have no idea how i can target each of the divs usings jquery through the ids so that each div is a clickable link.
Here is a part of my code
<!-- php script -->
<?php
require_once 'controllers/fetchVids.php';
if (mysqli_num_rows($result) > 0) {
// output data of each row
while($row = mysqli_fetch_assoc($result)) {
$fileName = $row[$filePath];
$file = basename($fileName);
$mb = round($row[$size] / (1000000), 2);
echo "
<div class='container search-output' id=''>
<div class='row song-info' id='file-$row[$videoId]'>
<div class= 'col col-sm-6 artist'>
$file
</div>
<div class= 'col col-sm-3 song-title'>
<span>Size:</span>
$mb mb
</div>
<div class= 'col col-sm-3 song-title'>
<span>Downloads:</span>
$row[$downloads]
</div>
</div>
<div class='row-lower'>
<a href='#' class='icon all-links'>
<i class='fa fa-whatsapp'></i> Share
</a>
<i class='fa fa-clock duration'></i> Duration $row[$duration] mins
</div>
</div>
";
} else {
echo "No New Videos";
}
mysqli_close($connection);
?>
Someone please show me the right jquery to do the above. thank you
Below is the jquery code i tried but it rather opens all the divs and not only that that a user clicks on
$(document).on('click', '.song-info', function() {
// alert(this.id);
if (this.id) {
window.location = "./song-details.php";
}
});
do you need a prescription for cialis
levitra free coupon
black viagra pill
[url=https://medspublic.com/]viagra 100 mg price[/url] [url=https://essinreceta.com/]comprar levitra genГ©rico online[/url] http://vardenafilz.com how long for levitra to take effect
propecia 1mg tabs
generic without doctor viagra
ivermectin for humans stromectol
where can i buy clomiphene – clomid online 100mg clomid tablets
ivermectina para que sirve
cialis online 20mg – tadalafil drug can you buy cialis online in australia
ivermectin pills for humans
stromectol pills – buy stromectol 6mg ivermectin 2ml
casino games online – online casino real money slot games online
levitra 5 mg levitra 100 levitra dosage options
medications that cause erectile dysfunction – low cost ed pills cheapest ed pills
zithromax
prednisone 60 mg tablets – prednisone purchase canada prescription prednisone cream
how much is 100mg sildenafil – viagra price online sildenafil mexico pharmacy
stromectol an effective replacement for ivermectin ivermectin ivermectin for humans
tadalafil generic price – Canadian generic cialis brand cialis canada
ventolin inhaler cost
ivermectin for humans for sale ivermectin tablets ivermectin where to buy
ivermectin 500ml – stromectol over the counter stromectol order online
best ed drugs – what is the best ed pill erectile dysfunction pills
ventolin 100 mcg – gnrventolin.com ventolin cost uk
After generating divs using php for loop and also dynamically assigning for them ids how to i target the ids using jquery? – JavaScript Help ed without a doctor prescription online prescription pharmacy usa top 10 canadian pharmacies online
sarasota county health department ventolin inhaler price walmart albuterol nebulizer dosage
purchase cytotec – cytotec 50 mg cytotec pills price in south africa
After generating divs using php for loop and also dynamically assigning for them ids how to i target the ids using jquery? – JavaScript Help ivermectin for sale ivermectin tablets amazon canine ivermectin for sale
generic neurontin pill – 800mg neurontin synthroid 50 pill
doctor who all doctor [url=https://finasteride5.com/]propecia in australia[/url] [url=https://levitraye.com/]when will levitra be generic[/url] [url=https://doctorxep.com/]viagra no prescription[/url] http://viaprescription.com how much does viagra cost at walmart
After generating divs using php for loop and also dynamically assigning for them ids how to i target the ids using jquery? – JavaScript Help ivermectin over the counter in the us can humans take ivermectin paste ivermectin
does r.kelly is hiv positive viagra with dapoxetine over the counter dapoxetine dapoxetine for sale
amoxicillin without a doctor’s prescription – generic amoxicillin at walmart’s website amoxicillin usa
over the counter medrol – medrol 4 buy lyrica online cheap
After generating divs using php for loop and also dynamically assigning for them ids how to i target the ids using jquery? – JavaScript Help is ivermectine for sale on dubai ivermectin for humans walmart buy ivermectin 12 mg for humans
After generating divs using php for loop and also dynamically assigning for them ids how to i target the ids using jquery? – JavaScript Help amoxicillin [url=https://amoxilotc.com]amoxicillin clavulanate[/url] amoxicillin 200 mg for dogs
After generating divs using php for loop and also dynamically assigning for them ids how to i target the ids using jquery? – JavaScript Help side effects for ivermectin ivermectina dosis ivermectin
buy 10 mg prednisone – prednisone 2.5 mg prednisone steroid
ventolin cost uk – ventolin 90 mcg ventolin medication
After generating divs using php for loop and also dynamically assigning for them ids how to i target the ids using jquery? – JavaScript Help ivermectina stromectol 3mg tablets ivermectin
how much is ivermectin – stromectol tablets 3 mg ivermectin 6mg online
ivermectin
how to get viagra in india – genuine viagra buy generic viagra india
gabapentin side effects
zyrtec side effects and warnings – zyrtec over the counter dose fexofenadina
order stromectol – stromectol buy ivermectin uk
levitra tablets price in india – web levitra cost levitra when to take
order tadalafil 20mg – order cialis online canada online pharmacy no prescription
casino real money – online casino no deposit bonus ocean casino online
ivermectin 2mg – ivermectin tablet stromectol 3 mg dosage
What’s up everyone, it’s my first visit at this site, and piece of writing is in fact fruitful for me, keep up posting these types of posts.|
priligy expiration date has anyone tried priligy? what issildeafil&dapoxetine
stromectol 3 mg ivermectin for humans ivermectino
purchase sildalis generic – brand sildalis metformin us