I have a table with dynamically added rows that need to have different properties for dynamic use, submit, etc. How can I pass their properties without a fixed name, id or class?
The dynamically created element:
<input type="text" name="input1" id="input1" class="input1" onkeyup="foo(this.name, this.value);"/>
The JavaScript function:
foo(this.name, this.value){
//data handler
};
I can´t rely on static properties for the function, they have to be passed after the element is created.