What does this jQuery code mean?
$('tr[id^="message"]')
It means - select all tr
elements which id
attribute starts with message
string
http://api.jquery.com/attribute-starts-with-selector/
[]
refers to an element's attribute(s) (id being one) and id^
is a wildcard which means the id must start with "message".
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