Skip to content

.parentModule()

esr360 edited this page Jun 1, 2019 · 1 revision

Get the parent Module for each element in the set of matched elements

.parentModule(config)
Param Type Info
[config] Object The configuration to use when calling the method (learn more)

Example

<div class="myModule" id="alpha">
    <div>
        <div class="myModule_myComponent" id="beta"></div>
    </div>
</div>
var parent = sQuery('#beta').parentModule(); // returns #alpha element
Clone this wiki locally