Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function checkValue(name, value)
- {
- $("[name=" + name + "]").each(function () {
- console.log(value);
- });
- }
- function checkValue(name, value)
- {
- if ($("[name*=" + name + "]").val() == value) {
- console.log(value);
- }
- }
- jquery.min.js:2 Uncaught Error: Syntax error, unrecognized expression: [name=[object HTMLInputElement]]
- at Function.oe.error (jquery.min.js:2)
- at oe.tokenize (jquery.min.js:2)
- at oe.select (jquery.min.js:2)
- at Function.oe [as find] (jquery.min.js:2)
- at w.fn.init.find (jquery.min.js:2)
- at new w.fn.init (jquery.min.js:2)
- at w (jquery.min.js:2)
- at checkValue (index.js:10)
- at include_moduleingabe_function.php:280
- function checkValue(name, value)
- {
- if ($("[name='" + name + "']").val() == value) {
- console.log(value);
- }
- }
- $('[id^=name]').each(function() {
- console.log(value);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement