Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

[Added] JS nuIsEnabled(), nuIsDisabled()

Information about updates, news, Code Library
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

[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