Oh silly me, thanks Klaus, excellent suggestion. That should cover most
situations.
Much simpler than fiddling with regex, and easier for others to follow!
Cheers,
George



Klaus Hartl wrote:
> 
> George Adamson schrieb:
>> Just discovered that simple wildcards can be used *without* modifying
>> jquery
>> code (phew), by using \\S* in the selector syntax...
>> 
>> Can be done like this:  $("INPUT.myClass\\S*")  will match .myClass1 and
>> .myClassHello etc.
>> 
>> This only works where selector searches in the jquery code rely on a
>> regex,
>> but it may be ok for some people.
>> 
>> Just another 2cents worth...
>> George
> 
> 
> George, couldn't you use the CSS 3 substring selector?
> 
> var $$ = $("[EMAIL PROTECTED]"myClass");
> 
> If the class name always starts with "myClass" you could also use
> 
> var $$ = $("[EMAIL PROTECTED]"myClass");
> 
> 
> -- Klaus
> 
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Enabling-wildcards-in-.className-selector-tf3220488.html#a8945182
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to