```
<div rownumber="0" messageid="29" style="margin:1px 1px 1px 1px; border:1px solid black">
    <input type="button" value="Vote" id="vote">
    <input type="button" value="Flag" id="flag">
</div>

```

These `<div>` elements are added dynamically to my page. How do I bind a Jquery `click` event to each of these vote and flag `buttons` and get the `rownumber` or `messageId` value from whatever parent `<div>` the `button` is in.

Thanks!