Give your input an ID and use the attr
method:
var name = $("#id").attr("name");
More Related Contents:
- Difference between .on(‘click’) vs .click()
- jQuery how to find an element based on a data-attribute value?
- How do you select a particular option in a SELECT element in jQuery?
- Pass array to ajax request in $.ajax() [duplicate]
- val() vs. text() for textarea
- Animate element transform rotate
- jQuery posting valid json in request body
- javascript capture browser shortcuts (ctrl+t/n/w)
- Load external css file like scripts in jquery which is compatible in ie also
- Unable to set data attribute using jQuery Data() API
- Store JSON object in data attribute in HTML jQuery
- jQuery toggle CSS?
- jqgrid showLink
- jQuery .on(‘click’) vs. .click() and .delegate(‘click’)
- Bootstrap 3 jquery event for active tab change
- jQuery Validate Ignore elements with style
- Write Content To New Window with JQuery
- How can I change HTML attribute names with jQuery?
- JSON: How do I make cross-domain JSON call
- finding the type of an element using jQuery
- Populate Select box options on click with Javascript/Jquery with Json data
- Modify a svg file using jQuery
- How do I reset a jquery-chosen select option with jQuery?
- How to handle the modal closing event in Twitter Bootstrap?
- How to sort by Date with DataTables jquery plugin?
- jQuery detect click on disabled submit button
- How can I disable Ctrl+A (select all) using jquery in a browser?
- jQuery AJAX call results in error status 403
- What jQuery version to mention in code
- Listen to changes within a DIV and act accordingly