jQuery getElementsByTagName not working

I'm doing an assignment for a class, where it says I need to modify jquery.altrow.js to create a plugin that uses the getElementsByTagName method to get all of an element’s “tr” child elements. They provide the following HTML and JavaScript:
<!DOCTYPE html>
    <meta charset="UTF-8">	
    <title>Alternating Row Plugin</title>
    <link rel="stylesheet" href="altrow.css">
    <script src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
    <script src="jquery.altrow.js"></script>
    <script src="altrow.js"></script>
      <h1>Important People in Computer Science</h1>
      <table id="important">
                <th>First Name</th><th>Last Name</th><th>Date of Birth</th><th>Accomplishment</th>
                <td>Originated the concept of a programmable computer, invented the first mechanical computer.</td>
                <td>First computer programmer. Wrote an algorithm for Babbage's mechanical computer.</td>
                <td>Invented the Turing Machine, a hypothetical device that's a model of a general purpose computer.</td>
                <td>Invented the first compiler for a computer programming language, popularized the term "debugging" for fixing computer glitches.</td>

Open in new window

"use strict";

window.onload = function() {
    $( document ).ready(function() {

Open in new window

"use strict";

	$.fn.highlightRows = function() {
		var testItems = this.getElementsByTagName("tr");

Open in new window

I am getting an error in Chrome's F12 tools console:

Uncaught TypeError: this.getElementsByTagName is not a function

I tried using the jQuery find method instead which works fine, but the question here is to use getElementsByTagName instead.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Chris StanyonWebDevCommented:
You're calling getElementsByTagName on this which is a jQuery object and that method doesn't exist on jQuery objects. You need to call it on the actual DOM element.  Look for a jQuery method that gives you direct access to the DOM Object

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.