Simplify ajax using html element's attributes.