LdWidgetUid getElementsByClassName

From WidgetAvenue Wiki

Jump to: navigation, search

Contents

Why use this function?

Various host platforms prevent the use of the standard getElementById function, for security reasons. Thus, it is recommended to use ldWidgetUid_getElementsByClassName instead.

Summary

This functions returns an array of nodes located in the widget matching the className argument

Syntax

ldWidgetUid_getElementsByClassName(className)

where

  • className is a string representing the className of the element(s) being sought.

Note

In order to get only the first node, use the following syntax

ldWidgetUid_getElementsByClassName(className)[0]
Personal tools