Remove the inline onclick can be done with jquery too, it's make more easily maintenable.
(and a a need an href, allways, but you can use somethink else than a)

     <a href="#" data-select="all">Select all</a>
     <a href="#" data-select="none">Unselect all</a>
     <a href="#" data-select="toggle">Toggle</a>

And the script
     $("[data-select]").on('click',function(event){
          event.preventDefault()Returns: undefined;
          case $(this).data('select')
                    ...........
});