Checkbox not working properly
<p>Here is my piece of code in jquery actuall I want in such way where :</p>

<ul>
<li>Where by default value of Ball will be shown in Textbox.</li>
<li>same time either All or Stopall will be work(it's not working here properly :( )</li>
<li>For  multiple times checking All button,which is not working according to the expectation</li>
</ul>

<p>here is the fiddle link : <a href="http://jsfiddle.net/bigzer0/PKRVR/11/" rel="nofollow">http://jsfiddle.net/bigzer0/PKRVR/11/</a></p>

<pre><code>$(document).ready(function() {
    $('.check').click(function(){
        $("#policyName").val('Start');
        $("#features").val('');

        $('[name="startall"]').on('click', function() {
        var $checkboxes = $('input[type="checkbox"]').not('[name="startall"], [name="stopall"]');
        if (this.checked) {
            $checkboxes.prop({
                checked: true,
                disabled: true
            });
        }
        else{
             $checkboxes.prop({
                checked: false
            });
        }
    });

                  $(".check").each(function(){
            if($(this).prop('checked')){

                $("#policyName").val($("#policyName").val() + $(this).val());    
                $("#features").val($("#features").val() + $(this).data('name'));
                }            
        });

     });
});
</code></pre>

<p>Any comments on this context will be welcome</p>
