单击单选按钮时,jQuery切换标签类

1 jquery label radio-button toggleclass

我的单选按钮周围有一个标签,背景应该改变:悬停和:焦点

<label for="radio1" class="radio-blur">
<input name="job" id="radio1" value="1" type="radio"> Graphic Design</label>
Run Code Online (Sandbox Code Playgroud)

我想将类从.radio-blur更改为.radio-focus

我有

    $(document).ready(function(){
        $('input:radio').click(function() {
            $(this).parent('label').toggleClass('.radio-focus');
        });  
    }); 
Run Code Online (Sandbox Code Playgroud)

但它不起作用......请帮忙

Ale*_*Bay 7

删除课程中的点

$(this).parent('label').toggleClass('radio-blur radio-focus');
Run Code Online (Sandbox Code Playgroud)

的jsfiddle