jQuery, how to find an element by attribute NAME?
you can use the jquery attribute selector to search by name.
console.log($('[name="deleteuserid"]'));
Simply use deleteuserid
instead of deleteuserid!=""
like following.
console.log($('[deleteuserid]'));