I'am having problem with jquery selector.
Here is;
Jquery Selector (new):
<script>
(function ($) {
jQuery.expr[':'].Contains = function(a, i, m) {
return jQuery(a).text().toUpperCase()
.indexOf(m[3].toUpperCase()) >= 0;
};
function filterList(header, list) {
var form = $("<form>").attr({"class":"filterform","action":"#"}),
input = $("<input>").attr({"class":"filterinput","type":"text"});
$(form).append(input).appendTo(header);
$(input)
.change( function () {
var filter = $(this).val();
if(filter) {
$matches = $(list).find('a:Contains(' + filter + ')').parent();
$('li', list).not($matches).slideUp();
$matches.slideDown();
} else {
$(list).find("li").slideDown();
}
return false;
})
.keyup( function () {
$(this).change();
});
}
$(function () {
filterList($("#form"), $("#list"));
});
}(jQuery));
</script>
The List:
<div class="normal" id="form"></div>
<li>İngiltere</li>
<li>Iraq</li>
<li>Argentina</li>
When typing "i" to input box "İngiltere" does not appear. Only "Argentina". I have to make a modification to search both "i" and "İ" when typing "i" to the box..
Thanks..