diff --git a/web/CXM_jquery.anubis b/web/CXM_jquery.anubis index 30df353..976a715 100644 --- a/web/CXM_jquery.anubis +++ b/web/CXM_jquery.anubis @@ -20,6 +20,28 @@ public type JQuery_Actioner_type: public type JQuery_Actioner: jQuery_actioner(Actioner_Target target, JQuery_Actioner_type type, String url_or_form_id_or_script). +/* jQuery Selector - http://api.jquery.com/category/selectors/ */ +public type JQuerySelector: + element(HtmlId id), + element_class(String name), + childs(HtmlId id). + +public define String + format_jquery_selector + ( + JQuerySelector selector + ) = + if selector is + { + element(html_id) then + if html_id is htmlId(id) then "'#" + id + "'", + + element_class(name) then + "'." + name + "'", + + childs(html_id) then + if html_id is htmlId(id) then "'#" + id + " > *'" + }. /* */ public define Script -- libgit2 0.21.4