Change the get doms function to using jQuery attributes selector.