find tag before and add class..

find tag before and add class..

How do I add a class to the <p> tag before each disabled element..this is not working for me. Basically if it finds a disabled checkbox within my accordion ui I want to strike-through the text..
 

// add line-through for disabled checkboxes

$(
':disabled' ).prev().addClass( "disabled" );
 
html
 

<

li><p><input runat="server" type="checkbox" name="<%# XPath(&quot;CHECKBOX[@id='CARS']/NAME&quot;)%>" value="<%# XPath(&quot;CHECKBOX[@id='CARS']/VALUE&quot;)%>" disabled="<%# cbStatus(XPath(&quot;CHECKBOX[@id='CARS']/DISABLED&quot;))%>" />

 Reports

</p>

</li>