A few tweaks

This commit is contained in:
Claude Brisson
2024-02-26 15:34:10 +01:00
parent 924b31d24b
commit 57192f166b
6 changed files with 14 additions and 9 deletions

View File

@@ -110,6 +110,7 @@ HTMLFormElement.prototype.val = function(name, value) {
let ctl = this.find(`[name="${name}"]`)[0];
if (!ctl) {
console.error(`unknown input name: ${name}`)
return undefined
}
let tag = ctl.tagName;
let type = tag === 'INPUT' ? ctl.attr('type') : undefined;