Jquery Dragable help disabled when clicked
<p>i am currently use Draggable in Jquery i am trying to make it so when you click on a div it will disable you from draging it i have the follow code be it seems to not work can anyone lead me in the right direction please</p>

<pre><code>selected_div = $("input#selected_div").val();

 $("#68").draggable({ 
          containment: 'parent',
if(selected_div == 68){
          disabled: true,
}else{
          disabled: false,
}
          handle: 'drag_border',
          drag: function(e, ui) {
                 var top = ui.position.top;
                 var left = ui.position.left;
                 $("input#tuPBd0hm_top").val(top);
                 $("input#tuPBd0hm_left").val(left);
                 $("#top").html(top);
                 $("#left").html(left);
}
});
</code></pre>

<p>Thank you,</p>
