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

Reply via email to