Toggle navigation
Dashboard
Dashboard Tracker
Add / Edit My Forums
System Announcements
Discussion
Active Thread Feed
Top Threads Today
Top Threads This Week
Top Threads Library
Go!
View All
View All
Login
Logout
Home
Forums Index
Browser Side
/
JavaScript and AJAX
11:52 pm Jul 21, 2026
This page requires javascript.
Forum Moderators:
open
Message Too Old, No Replies
Find something by Attribute with JQuery
rwilson
Msg#:4341948
9:06 pm on Jul 20, 2011
(gmt 0)
I have a button that does not have a unique class or id but it does have value="Download". I can't edit this button.
How would I use JQuery to find this button then edit the css?
Any help would be greatly appreciated!
daveVk
Msg#:4341995
11:08 pm on Jul 20, 2011
(gmt 0)
Try
$('[value="Download"]')
rocknbil
Msg#:4342316
5:01 pm on Jul 21, 2011
(gmt 0)
Or . . . if that value may change, descendant selection. If there are any parent elements with ID's or other handles,
<form id="some-form">
<input type="submit" value="Download Now">
</form>
$('#some-form :submit')
Use :button if it's a button. Which it shouldn't be, I'd think.
Join The Conversation
Register
For Free! -
Become a
Pro Member
!
See forum categories
-
Enter the Forum
Moderators and Top Contributors
Moderator List
| Top Contributors:
This Week
,
This Month
,
Jun
,
May
,
Archive
,
Top 100 All Time
,
Top Voted Members
Hot Threads This Week
July 2026 Google Search Observations
Annoying Crawler, Bot, or what?
Suspicious visitors
Do you still build external links in 2026?
How to find out why a page is suddenly popular?
Home
Forums Index
Browser Side
/
JavaScript and AJAX
11:52 pm Jul 21, 2026