Forum Moderators: open
if (foo.length)
foo.val('bar'); if (foo.length)
this.val('bar'); var ph = $('input[name=' + restore[i] + ']');
if (ph.length)
ph.val('bar'); foo.val(foo.length ? 'bar' : null) $("input[name=" + (restore.length ? null : restore[x] ) + "]"`) (restore[x] || null) $(`input[name=${restore ? restore[x] : null}]"`) $("input[type=text].tags").val(function(index, value) {
return value.trim();
}); I was hoping there might be a global variable similar to this (or $(this)) for a conditional statement that could shave a few microseconds off of the load time.