Forum:JavaScript and imput form

Hello, I'd like to create a little tool that can instantly change background and color or the class of another object. This require JavaScripts and the use of input form. This is what the basic HTML code should looks like: Background: 

Text-color:  

Test background and text-color

Class:  

Test class I can't show the forms here, because I think I have to use verbatim tags to get them to work. I should be able to do something for the JavaScript code, but what I can't figure it out is how I can get the values inside the input forms when you click the button. Any advices?


 * Put ids on the input elements. Names are only useful when you're referencing a bunch of similar forms, in this case, it's much easier to get the elements with . The text inside is stored in the   attribute of each element.