setTimeout JavaScript

Posted On // Leave a Comment
setTimeout
function onFromCitySelected()
{
    isFromCitySelected=true;      
    document.getElementById('<%=btnGetContinentCountryFrom.ClientID %>').click();
    
    setTimeout
    (
        function()
        {
            if (document.getElementById('<%=lblMOP.ClientID %>').innerText == "MOPTM07/065A")
            {
                document.getElementById('<%=txtPortFromDetail.ClientID %>').value = "Tanjung Priok Port";
            }
        },
        1000
    );             
}

0 komentar: