So whan can I use to find attribute instead of a.textContent||
a.innerText||jQuery(a).text() ?
On Sep 23, 6:49 pm, Eric Martin <[EMAIL PROTECTED]> wrote:
> I recently posted about a custom jQuery selector to do a case-
> insensitive exact
> search:http://www.ericmmartin.com/creating-a-custom-jqu
I recently posted about a custom jQuery selector to do a case-
insensitive exact search:
http://www.ericmmartin.com/creating-a-custom-jquery-selector/
It sounds like writing a custom selector might be your best bet. You
should be able to do an exact, contains, and starts-with search,
depending on
hmmm thanks for that i'll check it out but exact search is not enough
for me... i need *keyword* kind of searching...
On 22 Eylül, 19:35, ricardobeat <[EMAIL PROTECTED]> wrote:
> my_search = "sEarCh"; //global var, you can't pass arguments to the
> filter function
> my_search = new RegExp(my_sear
my_search = "sEarCh"; //global var, you can't pass arguments to the
filter function
my_search = new RegExp(my_search,'i'); // 'i' makes the regexp case
insensitive
$('h1').filter(function () {
return $(this).attr('title').match(my_search);
});
this might be slow if you're handling large XML
Maybe try using filter and a regexp for the part that you want to be case
insensitive. Something like (very untested):
$(...).find('item').filter(function() { return this.name.match(new
RegExp(search, 'i')); }).each(function() {
});
I don't recall the syntax for accessing an XML attribute from ja
Nothing?
On Sep 20, 5:22 pm, blockedmind <[EMAIL PROTECTED]> wrote:
> I am making search in an xml file, but I don't get expected results
> since jQuery selectors arecase-sensitive. I use something like
>
> $(returnedXml).find("item[name*='"+search+"']").each(function(){
>
> });
>
> How to make i
6 matches
Mail list logo