Home » Categories » jQuery | ||||
Attribute Contains Selector [name*=”value”] |
||||
Article Number: 41 | Rating: Unrated | Last Updated: Wed, Sep 30, 2020 at 5:53 AM
|
||||
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>attributeContains demo</title> <script src="https://code.jquery.com/jquery-3.5.0.js"></script> </head> <body> <input name="man-news"> <input name="milkman"> <input name="letterman2"> <input name="newmilk"> <script> $( "input[name*='man']" ).val( "has man in it!" ); </script> </body> </html> Reference:
https://api.jquery.com/attribute-contains-selector/
|
||||
| ||||
Attachments
There are no attachments for this article.
| ||||
Comments There are no comments for this article. Be the first to post a comment. | ||||
Hidden image after redirect by check filename
Viewed 582 times since Wed, Sep 30, 2020
How to get Response Header location from jQuery Get?
Viewed 698 times since Wed, Sep 30, 2020
How to apply style to parent if it has child with CSS?
Viewed 523 times since Thu, Oct 8, 2020
jQuery multiple events to trigger the same function
Viewed 536 times since Mon, Sep 28, 2020
|