Hi,
i have an input field, it sits in a <td>, on certain conditions i want to set the border of the surrounding <td> to red from js. How to do it?
I tried these (without success):
1.)
2.)
None of the above works for me!
Thx for any help!!
heeeep
i have an input field, it sits in a <td>, on certain conditions i want to set the border of the surrounding <td> to red from js. How to do it?
I tried these (without success):
1.)
Code:
inputField.parentNode.style.borderColor='#FF0000';//red
2.)
Code:
inputField.parentNode.className = 'redborder';//having a proper class defined in css
...
//css:
TD.errorborder {
border-style: solid;
border-width: 3px;
border-color: #FF00FF;
}
None of the above works for me!
Thx for any help!!
heeeep