I have two blocks of code which basically check for 1) a click event on a radio button e.g.
$("input[id='frmSkill']").click(function(){
//do something
});
And 2) a block of code to check if a radio button is :checked, if so, then perform some actions e.g.
if($("input[id='frmSkill']:checked").val()){
//do something
});
What I'd like to do is combine the two in order to reduce the code as the actions performed under each are the same.