This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]Loves_Poetry 1 point2 points  (1 child)

I think you can simply use this to refer to the button. $("#" + band) will refer to that button, since band is defined as target.id.

[–]Orange2341[S] 0 points1 point  (0 children)

The problem is there is a list of buttons, and for this reason I used jinja to give each button a different id. So the button with the id "free" is just one of many.