You need to sign in to do that
Don't have an account?

Javascript and visualforce related problem
Hi All,
<script>
function setVar(){
var v= document.getElementById("cbid").getAttribute.style.(backgroundColor).value;
if(v == ''){
window.alert('ywewdf');
}else{
window.alert('welcome');
}
}
</script>
I am calling this function on button click but i am not getting any alert.
Actually i want to get the background color of <td>. By using javaScript.
Please help me.
Thanks in advance,
Dileep
