postgrade list filter

by davehol

HTML

<div class="m-program-list">
    <table class="table xm-grouped-table">
        <thead>
            <tr>
                <th class="m-program-list-level hidden-xxs">Study type</th>
                <th class="m-program-list-program">Program name</th>
                <th class="m-program-list-location"><a class="c-tooltip" data-tooltip="Campuses where you can study this program.">Location</a>
                </th>
                <th class="m-program-list-code hidden-xxs">Code</th>
                <th class="m-program-list-apply"><span class="visible-xxs">Apply</span>
                </th>
            </tr>
        </thead>
        <tbody>
            <tr class="" data-rp-offering-target="Domestic, International" data-local-intakes="Semester 1 2016">
                <td class="hidden-xxs">Undergraduate</td>
                <td class="m-program-list-title">
                    <div class="visible-xxs">Undergraduate</div> <a class="m-program-list-title-text js-append-src-url" href="/study-with-us/levels-of-study/undergraduate-study/bachelor-degrees/bp254/">
      Bachelor of Business (Accountancy)
    </a>

                    <div class="m-program-list-title-code visible-xxs">BP254</div>
                    <div class="b-domestic">
                        <div class="m-program-list-intakes-midyear">Open midyear</div>
                    </div>
                </td>
                <td>
                    <div class="m-extract-breadcrumb-physical-location" data-extract-major-delim="|" data-extract-glue=", ">Melbourne City</div>
                </td>
                <td class="hidden-xxs">BP254</td>
                <td class="m-program-list-apply">
                    <div class="visible-xxs"> <a href="/study-with-us/levels-of-study/undergraduate-study/bachelor-degrees/bp254/apply-now.html"><span class="c-icon-30 grunticon-pencil-red-30"></span></a>

                    </div>
                    <div class="hidden-xxs"> <a...

JavaScript

$(document).ready(function () {
     data = $(".js-integration-data-src");
     $.each(data, function (key, value) {
         obj = $.parseJSON($(this).html());
         if (!(obj.Career == "Postgraduate")) {
             $(this).parent().parent().hide();
         };
     });
 });