hi all,

following code is working fine in mozila but not working in IE.

Can anybody suggest compatible code for both the browsers.

function UpdateSelect()
{
    select_value = document.form1.selection_1.value;
    var id = 'hide_this_row';
    var obj = '';   
    obj = document.getElementById(id);
    alert("object is 1"+obj);
    if( parseInt(select_value) < 1)
    {
       obj.style.display = 'none';

       document.form1.payment_method_43.checked = false;
    }
    else
    {
    alert("object is"+obj.style.display);
       obj.style.display = 'table-row'; // or 'table-cell' or a TD element.
    }
}

thanks

krunal bhatt

plz give the complete code along with html code...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.