how to get html element by name using jquery without using id or class ? Is there any way to do that?
If you mean the name attribute, it's this:
$('[name="value"]')
If you mean the element name, then it's like this:
$('ul')
May be this:$('div[name="element_name"]')
.
Or other element type like:
img: $('img[name="element_name"]')
td: $('td[name="element_name"]')
...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With