i replaced < with [ and > with ]
my problem:
when you change something in the input field, I want to know what is the value of the input and change the style according to the given input; how can I do this, I want to use a Change(this) function which would work for every input field; so "alert(this.value);" wont give the value from the input field [problem 1] and don't knwo if this works "style.td.tdclass = this.value;" [problem 2]
my problem:
when you change something in the input field, I want to know what is the value of the input and change the style according to the given input; how can I do this, I want to use a Change(this) function which would work for every input field; so "alert(this.value);" wont give the value from the input field [problem 1] and don't knwo if this works "style.td.tdclass = this.value;" [problem 2]
HTML:
...
[style]
td.tdclass
{
font-family: "Times New Roman", Times, serif;
font-size: 15px;
color: #FFFFFF;
font-style: normal;
font-weight: 600;
}
[/style]
[script language="javascript"]
function Change()
{
alert(this.value);
// style.td.tdclass.color = '#' + this.value;
}
[/script]
...
[form name="frmName"]
...
[td class="tdclass"]
[input type="text" name="inpName" onchange="javascript: Change(this);"]
[/td]
...
[/form]
...