Find the first parent that matches selector

An example showing how to find the first parent that matches selector using Tizen 2.3.
var element = document.getElementById('element');
var closestParent = element.closest('.parentSelector');

Responses

0 Replies