I don't have IE8 at hand, but here's a test case with the code above: http://jquery.nodnod.net/cases/95
-- dz On Tue, Feb 3, 2009 at 9:00 AM, John Resig <[email protected]> wrote: > > Do you have a sample page that we can look at? I'm not sure what the > issue is - it may be a problem with IE 8. > > --John > > > > On Tue, Feb 3, 2009 at 5:08 AM, marcvangend <[email protected]> wrote: >> >> Hi, >> >> I'm quite new to jQuery development and bug reporting/tracking/fixing, >> so I hope I'm posting this in the right place. >> >> I added the following script in the head of my page: >> >> $(document).ready(function() { >> $('#edit-keys').val($('#edit-keys').val().replace(' >> type:product,'')); >> }); >> >> It is supposed to strip the string " type:product" from the value of >> an input field. It works fine in firefox and IE6, but not in IE8 rc1 >> (both in IE7 and IE8 mode). The error message was "val() is null or >> not an object". I couldn't test on the original IE7. After I moved the >> script to the bottom of the page, it worked fine. It seems as if the >> script was run before the document was ready. >> >> Is this a bug? Should I submit a bug report? >> >> Marc >> >> > >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
