'cause jQuery doesn't support that syntax. That would be $
('[class^=WasPrice]')http://docs.jquery.com/Selectors On Jan 29, 8:18 pm, rhasson <[email protected]> wrote: > you know I feel like a total idiot. I searched and searched about > special characters and stuff and never stopped to think twice. > > but the other thing is why would I get a syntax error when using the > "^" on some pages? > regardless of one or two classes it shouldn't error out. > > Thanks. > Roy > > On Jan 29, 4:51 pm, David Zhou <[email protected]> wrote: > > > Er.. a class with a space is two separate classes. > > > -- dz > > > On Thu, Jan 29, 2009 at 4:01 PM, rhasson <[email protected]> wrote: > > > > I run this command $("^.WasPrice") which suppose to find the class > > > that starts with WasPrice. The actual class name is "WasPrice > > > PriceM". My issue is being to select a class with a space. I can't > > > figure out how to escape a space character to select such classes. So > > > I decided to use the "^" which selects anything that starts with the > > > characters that follow. This seems to work fine on some pages but > > > fails with a syntax error on others. > > > > Any ideas and help would be greatly appreciated. > > > > Thanks, > > > Roy --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
