Doesn't make any sense! Are you sure the strings are equal? Can you
put a working sample of this issue online (jsbin.com)? There's
something missing.

On Jun 12, 10:09 am, rinse_my_phonebook <hugo.lee...@gmail.com> wrote:
> Hi there, I'm having a bad time trying to work out what is wrong with
> my approach and hoping someone can enlighten me. Consider the
> following.
>
>                         var t = 'input.ffControl[value="Add a Value"]:first';
>                         var s = 'input.ffControl[value="Add a 
> '+$(this).attr('class')
> +'"]:first';
>                         if(s == t)      alert(s);
>                         $(s,this).val('gotcha');
>
> The condition on line 3 evaluates to true and the alert appears. If I
> replace the fourth line with
>
>                         $(t,this).val('gotcha');
>
> The values of the input that I'm trying to change does not change.
>
> This baffles me now. Probably friday fever. I'll be glad of any
> suggestions.
>
> Rinse

Reply via email to