Help with .prev and .next

Help with .prev and .next

I think I could use .next on this, not sure, if there's a better way please let me know. I have a tab set up with an UL, each LI in the UL has a 1px dotted border on the bottom except the "active" li. The "active" tab has a background image. I need to remove the border of the LI before and after any LI that has the class active.

    $(document).ready(function() {
        if($('#flowtabs li a').hasClass('active').next('css','border','none')
    }

I don't think the construction is right, is there a better way to remove the border from the LI before and after the one that has the class 'active'

Thanks!

Kane Leins