10 examples of 'jquery get value by name' in JavaScript

Every line of 'jquery get value by name' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
this disclaimer
26getValue(name) {
27 return getValue(this.props.data, name);
28}
Important

Use secure code every time

Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code

27function getValue ( name ) {
28 return $('[name="' + name + '"]').val ();
29}
197function getValue_(name) {
198 var elements = document.forms[0].elements[name];
199 if (goog.isArrayLike(elements)) {
200 for (var i = 0; i < elements.length; ++i) {
201 if (elements[i].checked) return elements[i].value;
202 }
203 }
204
205 return elements.value;
206}
16function get(object, name) {
17 return object[name];
18}
5function getValue(name: string): HTMLInputElement["value"] {
6 return getInput(name).value.trim();
7}
1function get(obj, name, value) {
2 if (obj === null || obj === void 0)
3 return value;
4
5 if (!HAS.call(obj, name))
6 return value;
7 var t = typeof value;
8 switch (t) {
9 case NUMBER_TYPE:
10 case BOOL_TYPE:
11 case STRING_TYPE:
12 if (typeof obj[name] !== t)
13 return value;
14 default:
15 return obj[name];
16 }
17}
24function get (name) {
25 return cache[name] || null
26}
64value: function set(element, name, value) {
65 if (!element[METAL_DATA]) {
66 element[METAL_DATA] = {};
67 }
68 if (!name || !(0, _metal.isDef)(value)) {
69 return element[METAL_DATA];
70 }
71 element[METAL_DATA][name] = value;
72 return element[METAL_DATA][name];
73}
52function get(name) {
53 if (typeof (Storage) !== 'undefined') {
54 return localStorage.getItem(name)
55 } else {
56 window.alert('Please use a modern browser to properly view this template!')
57 }
58}
118function at(target, name) {
119 return !SE() ? target[name] : target.getAttribute(name) || target[name]
120}

Related snippets