Hi all I am trying to add a class selected to click area and a remove class in the hide area for the below jquery/javascript. Not really undstanding how it's added.
Thanks in advaance
D
<script type="text/javascript">
$(document).ready(function(){
$('.partner_image').click(function() {
var id =$(this).class('selected');
var id = $(this).attr('id');
id = id.replace('partner_','');
console.log(id);
$('.partner_description').hide();
var description = $('#partner_description_' + id);
$(description).show();
});
});
</script>