Hide/Unhide Field and Label based on dropdownlist selection

OK. So I made a little work around and managed to toggle visibility of the label as well by hiding complete parents of the input field.
if (selectedValue == “Closed Won”){
$("#hideunhide_c").parent().parent().show();
}else{
$("#hideunhide_c").parent().parent().hide();
}

However I’m still not sure what to do about adding a red star at the end of the label when dynamically making field required.
if(status == ‘Closed Won’){
addToValidate(‘EditView’,‘hideunhide_c’,‘varchar’,true,’{$mod_strings[‘LBL_HIDEUNHIDE’]}’);
$(’#LBL_HIDEUNHIDE’).html(’{$mod_strings[‘LBL_HIDEUNHIDE’]}: *’);
}
else{
removeFromValidate(‘EditView’,‘hideunhide_c’);
$(’#LBL_HIDEUNHIDE’).html(’{$mod_strings[‘LBL_HIDEUNHIDE’]}: ');
}

This doesn’t work since #LBL_HIDEUNHIDE cannot be referenced by id (id=""). Referencing by class I haven’t managed to make it work yet.

Any tips?