So I have a button like this....
<a id="fullcollapse" class="btn btn-lg btn-primary" href="#" role="button">Collapse menu «</a>
basically I want to change the id of the above onclick to "baseexpand" and when the next onclick happens to revert to the original id="fullcollapse"
I appreciate this is probably easy for most and have looked at documentation, examples on everything from Jquery to if else statements... I am interested in how others would approach this one. Jquery would be preferable as the id's relate to that.