[jQuery] Debug says I'm missing an end paren - but parens all match!

[jQuery] Debug says I'm missing an end paren - but parens all match!


In this line of code, I'm looking for a div whose Id is in variable
b1, and which has an input button field whose value is "Show" or
"Hide", and this line is to toggle those values.
$(("[id$="+b1+"]") input).attr(value, attr(value)
=="Hide"?"Show":"Hide");
This doesn't work, and Firebug gives me the error
"missing ) after argument list"