how to select name attr in js code example Example: jquery select by name element = $('input[name="element_name"]');