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
9:16 pm May 13, 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
,
Apr
,
Mar
,
Archive
,
Top 100 All Time
,
Top Voted Members
Hot Threads This Week
May 2026 Google Search Observations
AdSense Earnings and Observations - May 2026
Country Removal notice from Google Search
SEO question
Page indexed but live url test gets 500 error
Sitemaps for large websites and SEO - add everything or just some?
reverse() -- ColdFusion(or your language)/SQL + JavaScript
Home
Forums Index
Browser Side
/
JavaScript and AJAX
9:16 pm May 13, 2026