How do I detect a specific HTML component class using jQuery?
<p>Using jQuery, I am trying to find out if one class of my HTML component is "btnLecture". It works fine with Firefox, but it fails for Chrome or Safari.</p>

<p>Code:</p>

<pre><code>btnP.on('click', function (event) {
    event.preventDefault();
    var currentLine = event.currentTarget;

    var elementClass = $(this).attr("class");

    if (elementClass.contains("btnLecture")) {
        ...
</code></pre>
