Jump to content

2 Issues


Xtremer360

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.