When hovering over a parent element, I want to display an image within that specific parent only. Here is my current code snippet:
jQuery(".job_col").hover(function() {
var current = jQuery(this);
jQuery(current > ".plus").addClass("hi");
}, function() {
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div id="fixed_jobs_fluid">
<div class="container">
<div id="fixed_jobs_cont">
<div class="job_col">
<h2 class="f_job_title">Construction Site <br class="fixed_br">Supervisor role</h2>
<p class="f_salary">Salary: £20,000 – £22,000</p>
<img class="plus" src="<?php bloginfo('template_directory'); ?>/images/plus.png" alt="">
</div>
<div class="job_col" id="border">
<h2 class="f_job_title">Construction Contracts <br class="fixed_br">Manager role</h2>
<p class="f_salary">Salary: £40,000 – £45,000</p>
<img class="plus" src="<?php bloginfo('template_directory'); ?>/images/plus.png" alt="">
</div>
<div class="job_col">
<h2 class="f_job_title">Graduate Quantity <br class="fixed_br">Surveyor role</h2>
<p class="f_salary">Salary: £20,000 – £22,000</p>
<img class="plus" src="<?php bloginfo('template_directory'); ?>/images/plus.png" alt="">
</div>
</div>
</div>
</div>