Modules
Objects/Functions
SuiteScript 2.0
{Element}.getAttribute({name: {string}})
N/xml Module
Element.getAttribute()
Method Description:
Returns the value of the specified attribute.
Returns:
xml.Attr
Supported Script Types:
All script types
For more information, see SuiteScript 2.0 Script Types.
Governance:
None
Module:
N/xml Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=Element.getAttribute(options)
Example:
// Code Example 1
//Add additional code
//...
var attr = elem[0].getAttribute({
name : 'lang'
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_457730651854.html