$("[id$=" + b1 + "] input").toggle();
- Richard

On Tue, Oct 6, 2009 at 1:52 AM, hsfrey <hsf...@gmail.com> wrote:

>
> 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"
>

Reply via email to