help with $(this).val() toUpperCase()
Posted
by rod
on Stack Overflow
See other posts from Stack Overflow
or by rod
Published on 2010-05-11T17:58:20Z
Indexed on
2010/05/11
18:04 UTC
Read the original article
Hit count: 211
jQuery
Hi All,
Given:
<script type="text/javascript">
$(document).ready(function () {
var str = 'Test';
//alert(str.toUpperCase());
$('#stringFinder').keyup(function (e) {
alert($(this).val()==str.toUpperCase());
});
});
</script>
How do I make $(this).val() all upper case to get a like comparison?
Thanks, rodchar
© Stack Overflow or respective owner