Hi, I have a php script that create 3 divs with the same ID :
<div id="test">1</div>
<div id="test">2</div>
<div id="test">3</div>
And I have a jquery junction to handle the .click event :
$("#test").click(function(event) {
console.log(randomvar);
});
The problem is that the jquery funcion works great but ONLY for the FIRST DIV (<div id="test">1</div>), the jquery function is NOT doing anything with DIV 2 and DIV 3, why ?? Thanks!



Reply With Quote
