开发者

hiding a element using dojo in zend

开发者 https://www.devze.com 2022-12-22 11:11 出处:网络
dojo.addOnLoad( function() { attach on click to id=\"textDiv\" dojo.query(\'#Specific_consultant-Yes\').onclick( function(evt) {
dojo.addOnLoad( function() {
 attach on click to id="textDiv"
 dojo.query('#Specific_consultant-Yes').onclick( function(evt) {
//    document.getElementById("Consultants").style.visibility = "hidden";
        dojo.style.setVisibility('Consultants', false);
//alert('hai');
});
});

I tried t开发者_Python百科o write code like this in zend in views page . the alert command works but the hiding of element does not work!!!any problem in code?


try to use the following code:

dojo.style("Consultants", "visibility", false);

i suspect the id of the element to be hidden is "Consultants"?

if this is not working, please provide your html-code.

0

精彩评论

暂无评论...
验证码 换一张
取 消