Load cookie and remove disable attribute

Load cookie and remove disable attribute

I have a form with some select option like
  1. <select name="chart" id="chart">
  2. <option>Google Chart</option>
  3. <option>Flash Chart</option>
  4. </select>
  5. <select name="typeo" id="typeo" disabled="disabled">
  6. <option>Line Chart</option>
  7. <option>Pie Chart</option>
  8. <option>Bar Chart</option>
  9. </select>
Actually typoe options are created by json. After selecting chart it varries for google chart and flash chart.

I have disabled typeo and using jquery to enable it so every user select every necessary options. 
I am using jquery like to remove attribute disabled
  1. $('#chart').change(function(){
  2. if($('option:selected', this).val() === 'None'){
  3. $('#typeo').attr('disabled','disabled');    }
  4. else{
  5. $('#typeo').removeAttr('disabled'); }
Later I found users have to select each and evry options every time when they will try to create a new chart so I thought about using cookie and I am using jquery cookie. I have successfully created the cookies. Now at first I have loaded the first option cookie 
  1. var gcook= $.cookie('MyCookie1');
  2. if(gcook!=='null'){
  3. $('#chart').val(gcook);}
Now I am having problem the remove attributes are written on base of .change if I load the cookie at first then typeo option's disable attribute not getting removed. So can any one please tell me how can I use remove disable attributes and load cookies?
Thanks