Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

[Added] JS nuIsEnabled(), nuIsDisabled()

Information about updates, news, Code Library
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

[Added] JS nuIsEnabled(), nuIsDisabled()

Unread post by admin »

The function nuIsEnabled() returns true, if an object is enabled and false, if it is disabled.

:arrow: Example:

Code: Select all

if (nuIsEnabled('object_id')) alert('The object is enabled');
Likewise, the function nuIsDisabled() returns true, if an object is disabled and false, if it is enabled.

:arrow: Example:

Code: Select all

if (nuIsDisabled('object_id')) alert('The object is disabled');

:arrow: Wiki
Post Reply