Something like: <script type='text/javascript' src='jquery.js' /> <script type='text/javascript'> [define custom expression here]
$(document).ready(function () { [use custom expression here] }); </script> [the rest of your scripts here] -Eric http://www.ericmmartin.com/creating-a-custom-jquery-selector/ On Oct 9, 11:04 am, bdee1 <[EMAIL PROTECTED]> wrote: > this doesn't seem to work for me > > I assume i just add the jQuery.extend business in the head of the HTML file > after my jquery include but before my other jquery functions? > > > > Karl Swedberg-2 wrote: > > > On Oct 19, 2007, at 2:09 AM, Erik Beeson wrote: > >> You could add your own expression for it (tested on FF2/Mac): > > >> jQuery.extend(jQuery.expr[':'], { > >> containsIgnoreCase: "(a.textContent||a.innerText||jQuery(a).text > >> ()||'').toLowerCase().indexOf((m[3]||'').toLowerCase())>=0" > >> }); > > >> Usage: > > >> $('...:containsIgnoreCase("foo")'); > > > Nice one, Erik! > > > --Karl > > _________________ > > Karl Swedberg > >www.englishrules.com > >www.learningjquery.com > > -- > View this message in > context:http://www.nabble.com/Case-insensitive-version-of-%3Acontains%28text%... > Sent from the jQuery General Discussion mailing list archive at Nabble.com.