jQuery: using a variable as a selector [duplicate]

Solution 1:

You're thinking too complicated. It's actually just $('#'+openaddress).