How do I pass a server control's actual client Id to a javascript function?

前端 未结 6 619
鱼传尺愫
鱼传尺愫 2020-12-19 07:00

I have the following textbox server control in my web page:



        
6条回答
  •  情深已故
    2020-12-19 07:24

    
    
    
    function ZipCode_OnChange(element, txtCity, txtState) {
        var ClientId = element.getAttribute('id'),
            ret = null,
            value = element.value;
    
        ret = WebService.GetCityAndState(value, OnComplete1, OnError, ClientId);
    }
    

提交回复
热议问题