»
S
I
D
E
B
A
R
«
Converting HTML tag to lowercase using jQuery
May 22nd, 2010 by admin

Using jQuery, you can convert HTML tags to lowercase. Here is how you can do it:

<script>
$('#output').text($('#container').html().replace(/</?[A-Z]+.*?>/g, function (m) { return m.toLowerCase(); }));
</script>
Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay



Similar Posts:
Leave a Reply

Powered by WP Hashcash