Xtremer360 Posted January 1, 2011 Share Posted January 1, 2011 I'm not sure how to make these two things happen but after it gets the number of matches and does the while loop my dropdown functions only work for the first one. I know its because its setup with ids and not classes but when I changed the ids to classes it none of them worked so I'm wondering what I'm doing wrong. The second part is I'm trying to figure out how to assign the match number to a jquery variable because as you can see the match number is echoed using php as <?php echo $i+1 ?> http://gjslick.pastebin.com/VCAfxpPH Quote Link to comment https://forums.phpfreaks.com/topic/223140-2-issues/ Share on other sites More sharing options...
BLaZuRE Posted January 2, 2011 Share Posted January 2, 2011 No idea on your first one. Post code to clarify. For your javascript: yourVar = <?php echo $i+1; ?>; You missed your semicolon in the php code you posted. Also, php will execute before your javascript, so $i will evaluate before yourVar is assigned. Quote Link to comment https://forums.phpfreaks.com/topic/223140-2-issues/#findComment-1153943 Share on other sites More sharing options...
Xtremer360 Posted January 3, 2011 Author Share Posted January 3, 2011 I figured out the first part and thank you on the second. Quote Link to comment https://forums.phpfreaks.com/topic/223140-2-issues/#findComment-1154232 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.