From febcc19c5adc8dcbc9108610bb81c72f8c27d5e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=CC=88rn=20Zaefferer?= Date: Thu, 7 May 2015 15:35:32 +0200 Subject: [PATCH 1/2] Entries: Document $.fn.labels Fixes #270 --- entries/labels.xml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 entries/labels.xml diff --git a/entries/labels.xml b/entries/labels.xml new file mode 100644 index 00000000..6ce61d04 --- /dev/null +++ b/entries/labels.xml @@ -0,0 +1,27 @@ + + + .labels() + Finds all label elements associated with the first selected element. + +

This can be used to find all the <label> elements associated with an <input> element. The association can be through nesting, where the label is an ancestor of the input, or through the for attribute on the label, pointing at the id attribute of the input. If no labels are associated with the given element, an empty jQuery object is returned.

+

This methods mimics the native labels property, which isn't supported in all browsers. In addition, this method also works for document fragments.

+
+ 1.12 + + 100 + Highlight all labels of the input element + + + Firstname + + + +]]> + + + + +
From 184510035b3c88a3ca43d088e4da01b17ce2713c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=CC=88rn=20Zaefferer?= Date: Thu, 7 May 2015 16:13:17 +0200 Subject: [PATCH 2/2] [fix]: Put signature for position() and labels() in the right place --- entries/labels.xml | 4 +++- entries/position.xml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/entries/labels.xml b/entries/labels.xml index 6ce61d04..bc7efd5f 100644 --- a/entries/labels.xml +++ b/entries/labels.xml @@ -6,7 +6,9 @@

This can be used to find all the <label> elements associated with an <input> element. The association can be through nesting, where the label is an ancestor of the input, or through the for attribute on the label, pointing at the id attribute of the input. If no labels are associated with the given element, an empty jQuery object is returned.

This methods mimics the native labels property, which isn't supported in all browsers. In addition, this method also works for document fragments.

- 1.12 + + 1.12 + 100 Highlight all labels of the input element diff --git a/entries/position.xml b/entries/position.xml index 97ca5307..cc86dbe9 100644 --- a/entries/position.xml +++ b/entries/position.xml @@ -8,8 +8,8 @@

This is a standalone jQuery plugin and has no dependencies on other jQuery UI components.

- 1.8 + 1.8 Defines which position on the element being positioned to align with the target element: "horizontal vertical" alignment. A single value such as "right" will be normalized to "right center", "top" will be normalized to "center top" (following CSS convention). Acceptable horizontal values: "left", "center", "right". Acceptable vertical values: "top", "center", "bottom". Example: "left top" or "center center". Each dimension can also contain offsets, in pixels or percent, e.g., "right+10 top-25%". Percentage offsets are relative to the element being positioned.