<commit_before>jquery-labeled
==============

Select form fields and other interactive elements like &lt;a> by visual descriptors like &lt;label> or placeholder attributes. Labeled is a jQuery content filter and can be used like :labeled('Login') or input:labeled('email-address').<commit_msg>Add some examples to README<commit_after>jquery-labeled
==============

Select form fields and other interactive elements like &lt;a> by visual descriptors like &lt;label> or placeholder attributes. Labeled is a jQuery content filter and can be used like :labeled('Login') or input:labeled('email-address').

Examples
--------

Find <a>Anchor Text Node</a>:

	$(':labeled(Anchor Text Node)')
	// or
	$('a:labeled(Anchor Text Node)')

Find <input type="submit" value="Input Value">

	$(':labeled(Input Value)')

Find <input>:

	<label for="id">Text Input Label Text Node</label>
	<input type="text" id="id">

	$(':labeled(Text Input Label Text Node)')
{'fraction_non_alphanumeric': 0.15800636267232238, 'fraction_numerical': 0.0, 'mean_word_length': 5.601398601398602, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4451101', 'n_tokens_mistral': 278, 'n_tokens_neox': 258, 'n_words': 102}