count your opening parentheses versus closing parentheses.

On Sat, Jan 24, 2009 at 10:32 AM, Rick Faircloth
<[email protected]>wrote:

>
> Hi, all...
>
> I keep getting this error from Firebug:
>
> syntax error
> .trigger('change'); \n
>
> for this code:
>
>                $(document.ready(function() {
>
>                        $('#select').change(function() {
>
>                                var newName = '';
>                                $('select option:selected').each(function()
> {
>                                        newname += $(this).text() + ' ';
>                                });
>
>                        $('#name-div p').text(newName+' [Change]');
>                        $('#name-div').fadeIn(500);
>
>                        });
>
>                        .trigger('change');
>                });
>
> What's wrong with it?
>
> Thanks,
>
> Rick
>
>


-- 
I have failed as much as I have succeeded. But I love my life. I love my
wife. And I wish you my kind of success.

Reply via email to