jQuery selector to get form by name
问题 I have the following HTML: <form name="frmSave">...</form> Just to know, I am not able to modify the HTML in order to add an id or something else. This is what I tried to get the form element by it's name: var frm = $('form[name="frmSave"]'); console.log(frm); (but I believe the above code will try to get a children element with the frmSave name inside the form which is not what I need). How can I achieve this, is it possible to get the form by just the name and using a selector? Update: I