I\'m trying to set multiple attributes to an element and avoiding to repeat writing the same code over and over. So I want to use a function I can call multiple times and se