From 6ce9762ea026031eabba317ec62c93181552d325 Mon Sep 17 00:00:00 2001 From: Arthur Verschaeve Date: Fri, 5 Dec 2014 20:56:15 +0100 Subject: [PATCH] Don't reference `docs.jquery.com` as source --- .../how-do-i-check-uncheck-a-checkbox-input-or-radio-button.md | 3 +-- .../faq/how-do-i-determine-the-state-of-a-toggled-element.md | 3 +-- .../faq/how-do-i-disable-enable-a-form-element.md | 3 +-- .../faq/how-do-i-get-the-text-value-of-a-selected-option.md | 3 +-- .../how-do-i-pull-a-native-dom-element-from-a-jquery-object.md | 3 +-- ...-replace-text-from-the-3rd-element-of-a-list-of-10-items.md | 3 +-- ...lement-by-an-id-that-has-characters-used-in-css-notation.md | 3 +-- .../faq/how-do-i-select-an-item-using-class-or-id.md | 3 +-- ...w-do-i-select-elements-when-i-already-have-a-dom-element.md | 3 +-- .../faq/how-do-i-test-whether-an-element-exists.md | 3 +-- .../how-do-i-test-whether-an-element-has-a-particular-class.md | 3 +-- 11 files changed, 11 insertions(+), 22 deletions(-) diff --git a/page/using-jquery-core/faq/how-do-i-check-uncheck-a-checkbox-input-or-radio-button.md b/page/using-jquery-core/faq/how-do-i-check-uncheck-a-checkbox-input-or-radio-button.md index a02c0bbf..e6a6f6b5 100644 --- a/page/using-jquery-core/faq/how-do-i-check-uncheck-a-checkbox-input-or-radio-button.md +++ b/page/using-jquery-core/faq/how-do-i-check-uncheck-a-checkbox-input-or-radio-button.md @@ -1,6 +1,5 @@ You can check or uncheck a checkbox element or a radio button using the `.prop()` method: diff --git a/page/using-jquery-core/faq/how-do-i-determine-the-state-of-a-toggled-element.md b/page/using-jquery-core/faq/how-do-i-determine-the-state-of-a-toggled-element.md index 2dd25f86..718df5e2 100644 --- a/page/using-jquery-core/faq/how-do-i-determine-the-state-of-a-toggled-element.md +++ b/page/using-jquery-core/faq/how-do-i-determine-the-state-of-a-toggled-element.md @@ -1,6 +1,5 @@ You can determine whether an element is collapsed or not by using the `:visible` and `:hidden` selectors. diff --git a/page/using-jquery-core/faq/how-do-i-disable-enable-a-form-element.md b/page/using-jquery-core/faq/how-do-i-disable-enable-a-form-element.md index 955922f8..9ab3afa5 100644 --- a/page/using-jquery-core/faq/how-do-i-disable-enable-a-form-element.md +++ b/page/using-jquery-core/faq/how-do-i-disable-enable-a-form-element.md @@ -1,6 +1,5 @@ You can enable or disable a form element using the `.prop()` method: diff --git a/page/using-jquery-core/faq/how-do-i-get-the-text-value-of-a-selected-option.md b/page/using-jquery-core/faq/how-do-i-get-the-text-value-of-a-selected-option.md index b508d7c8..b98cd07e 100644 --- a/page/using-jquery-core/faq/how-do-i-get-the-text-value-of-a-selected-option.md +++ b/page/using-jquery-core/faq/how-do-i-get-the-text-value-of-a-selected-option.md @@ -1,6 +1,5 @@ Select elements typically have two values that you want to access. First there's the value to be sent to the server, which is easy: diff --git a/page/using-jquery-core/faq/how-do-i-pull-a-native-dom-element-from-a-jquery-object.md b/page/using-jquery-core/faq/how-do-i-pull-a-native-dom-element-from-a-jquery-object.md index 261e75dd..e4ba9e95 100644 --- a/page/using-jquery-core/faq/how-do-i-pull-a-native-dom-element-from-a-jquery-object.md +++ b/page/using-jquery-core/faq/how-do-i-pull-a-native-dom-element-from-a-jquery-object.md @@ -1,6 +1,5 @@ A jQuery object is an array-like wrapper around one or more DOM elements. To get a reference to the actual DOM elements (instead of the jQuery object), you have two options. The first (and fastest) method is to use array notation: diff --git a/page/using-jquery-core/faq/how-do-i-replace-text-from-the-3rd-element-of-a-list-of-10-items.md b/page/using-jquery-core/faq/how-do-i-replace-text-from-the-3rd-element-of-a-list-of-10-items.md index 4d611906..02fe3e92 100644 --- a/page/using-jquery-core/faq/how-do-i-replace-text-from-the-3rd-element-of-a-list-of-10-items.md +++ b/page/using-jquery-core/faq/how-do-i-replace-text-from-the-3rd-element-of-a-list-of-10-items.md @@ -1,6 +1,5 @@ Either the `:eq()` selector or the `.eq()` method will allow you to select the proper item. However, to replace the text, you must get the value before you set it: diff --git a/page/using-jquery-core/faq/how-do-i-select-an-element-by-an-id-that-has-characters-used-in-css-notation.md b/page/using-jquery-core/faq/how-do-i-select-an-element-by-an-id-that-has-characters-used-in-css-notation.md index cbc46c14..8d71ebb6 100644 --- a/page/using-jquery-core/faq/how-do-i-select-an-element-by-an-id-that-has-characters-used-in-css-notation.md +++ b/page/using-jquery-core/faq/how-do-i-select-an-element-by-an-id-that-has-characters-used-in-css-notation.md @@ -1,6 +1,5 @@ Because jQuery uses CSS syntax for selecting elements, some characters are interpreted as CSS notation. For example, ID attributes, after an initial letter (a-z or A-Z), may also use periods and colons, in addition to letters, numbers, hyphens, and underscores (see [W3C Basic HTML Data Types](http://www.w3.org/TR/html4/types.html#type-id)). The colon (":") and period (".") are problematic within the context of a jQuery selector because they indicate a pseudo-class and class, respectively. diff --git a/page/using-jquery-core/faq/how-do-i-select-an-item-using-class-or-id.md b/page/using-jquery-core/faq/how-do-i-select-an-item-using-class-or-id.md index 916d37b6..aad1bb1d 100644 --- a/page/using-jquery-core/faq/how-do-i-select-an-item-using-class-or-id.md +++ b/page/using-jquery-core/faq/how-do-i-select-an-item-using-class-or-id.md @@ -1,6 +1,5 @@ This code selects an element with an ID of "myDivId". Since IDs are unique, this expression always selects either zero or one elements depending upon whether or not an element with the specified ID exists. diff --git a/page/using-jquery-core/faq/how-do-i-select-elements-when-i-already-have-a-dom-element.md b/page/using-jquery-core/faq/how-do-i-select-elements-when-i-already-have-a-dom-element.md index babd7102..10490556 100644 --- a/page/using-jquery-core/faq/how-do-i-select-elements-when-i-already-have-a-dom-element.md +++ b/page/using-jquery-core/faq/how-do-i-select-elements-when-i-already-have-a-dom-element.md @@ -1,6 +1,5 @@ If you have a variable containing a DOM element, and want to select elements related to that DOM element, simply wrap it in a jQuery object. diff --git a/page/using-jquery-core/faq/how-do-i-test-whether-an-element-exists.md b/page/using-jquery-core/faq/how-do-i-test-whether-an-element-exists.md index e7b75438..c6ef018e 100644 --- a/page/using-jquery-core/faq/how-do-i-test-whether-an-element-exists.md +++ b/page/using-jquery-core/faq/how-do-i-test-whether-an-element-exists.md @@ -1,6 +1,5 @@ Use the [.length](http://api.jquery.com/length/) property of the jQuery collection returned by your selector: diff --git a/page/using-jquery-core/faq/how-do-i-test-whether-an-element-has-a-particular-class.md b/page/using-jquery-core/faq/how-do-i-test-whether-an-element-has-a-particular-class.md index 556ec49f..8ebe9e19 100644 --- a/page/using-jquery-core/faq/how-do-i-test-whether-an-element-has-a-particular-class.md +++ b/page/using-jquery-core/faq/how-do-i-test-whether-an-element-has-a-particular-class.md @@ -1,6 +1,5 @@ [.hasClass()](http://api.jquery.com/hasClass/) (added in version 1.2) handles this common use case: