Hi,
I would like to dynamically change an object's style in javascript but I
didn't manage to do that.
Here is an sample of my javascript code :
function checkFileName(object) {
var pattern = "<%=pr.getFiltrePhoto()%>";
if (!object.value.match(pattern)) {
object.form["myInputButton"].disabled = true;
//object.form["myInputButton"].class = 'MyDisabledClassStyle';
}
else {
object.form["myInputButton"].disabled = false;
//object.form["myInputButton"].class = 'MyEnableClassStyle';
}
}
I didn't manage to access to the "class" properties. Is there a way to
affect a predefined class style to an object ?
thx,
Bj