Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to search a string ignoring accent characters (e.g. ã = a)
    primarykey
    data
    text
    <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/227950/programatic-accent-reduction-in-javascript-aka-text-normalization-or-unaccenting">Programatic Accent Reduction in JavaScript (aka text normalization or unaccenting)</a> </p> </blockquote> <p>I'm trying to find a string ignoring accent, so in my example if I search for <em>avião</em> or <em>aviao</em> I get both result always. here's a start up...</p> <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;script type="text/javascript" src="http://jquery.com/src/jquery-latest.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(function () { $('input').keyup(function (event) { if (jQuery.trim($('input').val()) == "") { return; } var str = jQuery.trim($('input').val()).split(" "); jQuery.each($('table &gt; tbody &gt; tr &gt; td:last-child'), function () { var colval = $(this).html().toLowerCase(); jQuery.each(str, function () { var term = this.toLowerCase(); if (colval.indexOf(term) != -1) { alert(colval); } }); }); }); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;input type="text" id="q" /&gt; &lt;div&gt; &lt;table&gt; &lt;thead&gt; &lt;tr&gt; &lt;th&gt;Id&lt;/th&gt; &lt;th&gt;Name&lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;1&lt;/td&gt; &lt;td&gt;avião resume&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;2&lt;/td&gt; &lt;td&gt;résumé&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;3&lt;/td&gt; &lt;td&gt;resume&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;4&lt;/td&gt; &lt;td&gt;aviao résumé&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p><a href="http://jsfiddle.net/teQvn/" rel="nofollow noreferrer">Sample</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload