I am simply attempting to get jquery to identify the first letter of a paragraph. How would I do this?
For example, I have a page with a number of paragrahs on a pa
To hide the tags whose text does not start with the letter B:
B
$('p').filter(function() { return $(this).text().charAt(0).toUpperCase() != 'B'; }).hide();