How to check if the element is visible using Dojo 1.9?

I use the following code to hide or show fields:

Show elements:

style.set (dojo.byId('fTypeId'),'display','block');

Hidden elements:

style.set(dojo.byId ('fTypeId'),'display','none');

How to test whether this element is displayed?

try:

 require(["dojo/dom-style"], function(domStyle){
var isVisible = (domStyle.get("yourNodeId", "display") !== "none");
} );

I use the following code to hide or show fields:

Show elements:

style.set(dojo.byId('fTypeId'),'display','block');

Hidden elements:

style .set(dojo.byId('fTypeId'),'display','none');

How to test whether this element is displayed?

Try:

require(["dojo/dom-style"], function(domStyle){
var isVisible = (domStyle.get("yourNodeId", "display") !== "none");
});

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5799 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.