You incidentally used a descendant selector your code was equivelent to "#LAMlink #WIDlink" which means you are looking for a WIDlink that has an ancestor of LAMlink
So the proper solution is to change:
jQuery("#LAMlink", "#WIDlink")
to
jQuery("#LAMlink, #WIDlink")
Notice mine is all the same string.