Where in your code is that ID? Is it an attribute of an element or
just text inside #contentcolumn ?

On Feb 1, 7:52 pm, ktpmm5 <ka...@steppingstonez.com> wrote:
> I am displaying a bunch of data from a mysql database, shown below.  After
> the data is displayed, I put a button for each line of data. When a user
> clicks the button, I call the load function.  I am trying to figure out how
> to pass the id (received from the mysql db) for each particular record to
> the jquery load function.  Here is my code:
> [code]
> html....
> while($row = mysql_fetch_array($result))
> {
>         echo $row['day'];
>         echo "</td><td>";
>         <button class="volunteer" value="volunteer">Volunteer</button>
> .....
>
> js....
> $("#contentcolumn").load("popup.php?gameno=?");    
> [/code]
>
> How can I pass the id (received from mysqldb) via the Volunteer button? I'll
> then use this to lookup and display more data...
> --
> View this message in 
> context:http://www.nabble.com/pass-variable-from-button-to-jquery-tp21780863s...
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to