Javascript, CSS and UI
Hello, I am doing some UI work and I wonding if there is a way to send "this" value to a funtion without having to give every item a unique id
in other works, I can put this inline
but I would prefer to do something like
And then the function
Its going to be crazy if I have to give each item its own id. *js code not exactly right to get through the filters
in other works, I can put this inline
on mouse over = this.style.borderTopColor='#0B226B';but I would prefer to do something like
on mouse over = this.changeColor();And then the function
changeColor() contains ...style.borderTopColor='#0B226B';Its going to be crazy if I have to give each item its own id. *js code not exactly right to get through the filters
