This is some snippet preview from what you trying to search, the copyright of the images is owned by the original owner, this post is only to help you choose the best things what you are trying to search, because this post collecting some the best things from the things what you are trying to search
detailed information for Jquery Getattribute Code Example you can search here https://www.codegrepper.com/code-examples/java/jquery+getattribute or https://www.codegrepper.com/codeimages/jquery-getattribute.png
Now find the input with the given name using the attribute equals selector.
The way i resolved was i have written a function in controller and accessed it via ajax on jquery click event. Selectors Attribute. Judging by the current accepted answer I am going to assume that you were able to add an ID attribute to your element and use that to select it.
detailed information for How To Get And Set Data Attribute Value In Jquery Tuts Make you can search here https://www.tutsmake.com/how-to-get-set-data-attribute-value-from-elements-jquery/ or https://www.tutsmake.com/wp-content/uploads/2019/04/get-data-attribute-jquery.jpeg