function queryFirstVisible(parent, field, form) {
        var elems = queryAllVisible(parent, field, form);
        return elems.length > 0 ? elems[0] : undefined;
    }
Query first visible element

@since 3.0.0

@param DOMElement parent Parent element to query
@param object     field  Field to search for
@param DOMElement form   Search only within this form
@return array First search result