Selector - мощный набор инструментов для согласования множества элементов в документе используя все возможности jquery , а так же все доступные хранилища такие как hash, cookies , local store и запросы через ajax на сервер

Selector делятся на два типа Jquery selector которые оборачивают методы jquery и специализированные Incoding которые дают возможность использовать дополнительные источники хранения данных.

Selector можно использовать при построение Url.Action. @Url.Action("Action","Controller",new {type= Selector.Jquery.Id("type"),fullName = Selector.Incoding.HashQueryString("fullName")})

Code Jquery Description
Selector.Jquery.Id<PostCommand>(r=>r.TextBox) $('#TextBox') The element with id="TextBox"
Selector.Jquery.Id("id","id2") $('#id,#id2') The element with id="id" or id="id2"
Selector.Jquery.Name<PostCommand>(r=>r.TextBox) $('[name="TextBox"]') All elements with name="TextBox"
Selector.Jquery.Name("TextBox") $('[name="TextBox"]') All elements with name="TextBox"
Selector.Jquery.Class("myClass") $('.myClass') All elements with class="myClass"
Selector.Jquery.Self() $(this.self) The DOM element that initiated the event.
Selector.Jquery.Target() $(this.target) The DOM element are applied to the executable
Selector.Jquery.Document() $(window.document) The JavaScript Document object
Selector.Jquery.Tag(HtmlTag.Th) $('th') All <p> elements
Selector.Jquery.HasAttribute(HtmlAttribute.Href) $('[href]') All elements with a href attribute
Selector.Jquery.NotEqualsAttribute(HtmlAttribute.Href, "default.html") $('[href!="default\.html"]') All elements with a href attribute value not equal to "default.htm"
Selector.Jquery.StartWithAttribute(HtmlAttribute.HrefLang, "en") $('[hreflang^="en"]') All elements with a hreflang attribute value starting with "en"
Selector.Jquery.EndsWithAttribute(HtmlAttribute.Href, ".jpg") $('[href$="\.jpg"]') All elements with a href attribute value ending with ".jpg"
Selector.Jquery.ContainsAttribute(HtmlAttribute.Name, "hello") $('[name*="hello"]') All elements with a name attribute value containing the word "hello"
Selector.Jquery.Tag(HtmlTag.P).Expression(JqueryExpression.First) $('p:first') All elements p by specific jquery expression
Code Jquery Description
Selector.Jquery.Class("class").Also(r=>r.Class("nextClass")) $('.class.nextClass')
Selector.Jquery.Class("class").Or(r=>r.Class("nextClass")) $('.class,.nextClass')
Selector.Jquery.Class("class").Tag(HtmlTag.Div).Gt(5) $('.class div:gt(5)')
Meta language Jquery Description
Selector.Jquery.Self().Add(selector => selector.Id("id")) $(this.self).add('#id')
Selector.Jquery.Self().Children(selector => selector.Tag(HtmlTag.Th)) $(this.self).children('th')
Selector.Jquery.Self().Closest(selector => selector.Tag(HtmlTag.Th)) $(this.self).closest('th')
Selector.Jquery.Self().Filter(selector => selector.Tag(HtmlTag.Th)) $(this.self).filter('th')
Selector.Jquery.Self().Find(selector => selector.Tag(HtmlTag.Th)) $(this.self).find('th')
Selector.Jquery.Self().Next(selector => selector.Tag(HtmlTag.Th)) $(this.self).next('th')
Selector.Jquery.Self().NextAll(selector => selector.Tag(HtmlTag.Th)) $(this.self).nextAll('th')
Selector.Jquery.Self().NextUntil(selector => selector.Tag(HtmlTag.Th)) $(this.self).nextUntil('th')
Selector.Jquery.Self().OffsetParent() $(this.self).offsetParent()
Selector.Jquery.Self().Parent(selector => selector.Tag(HtmlTag.Th)) $(this.self).parent('th')
Selector.Jquery.Self().Parents(selector => selector.Tag(HtmlTag.Th)) $(this.self).parents('th')
Selector.Jquery.Self().ParentsUntil(selector => selector.Tag(HtmlTag.Th)) $(this.self).parentsUntil('th')
Selector.Jquery.Self().Prev(selector => selector.Tag(HtmlTag.Th)) $(this.self).prev('th')
Selector.Jquery.Self().PrevAll(selector => selector.Tag(HtmlTag.Th)) $(this.self).prevAll('th')
Selector.Jquery.Self().PrevUntil(selector => selector.Tag(HtmlTag.Th)) $(this.self).prevUntil('th')
Selector.Jquery.Self().Siblings(selector => selector.Tag(HtmlTag.Th)) $(this.self).siblings('th')
Meta language Description
Selector.Incoding.Cookie<PostCommand>(r=>r.TextBox) Get cookies by key
Selector.Incoding.Cookie("Key") Get cookies by key
Selector.Incoding.HashQueryString<PostCommand>(r=>r.TextBox) Get root hash query string by key
Selector.Incoding.HashQueryString("key") Get root hash query string by key
Selector.Incoding.HashQueryString("key","prefix") Get hash query string by key and prefix
Selector.Incoding.HashUrl() Get root hash url
Selector.Incoding.HashUrl("prefix") Get hash url by prefix
Selector.Incoding.Href() Get document.location.href
Selector.Incoding.QueryString("key") Get query string by key
Selector.Incoding.Ajax([options]) Get value from url by ajax request