Remove and add specific classes - Jquery
<p>I need to remove existing class of an element and add another class...or shortly I want to replace a specific class having letters 'border' as substring by another class with letters 'border' as substring. I have to toggle among 8 classes. I tried to select previous class like strClass=$("#"+styleTarget[class*='border']), but it failed. Will "toggle" help me in this. Its very urgent. Thanks</p>
