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
2:28 am Jun 28, 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
,
May
,
Apr
,
Archive
,
Top 100 All Time
,
Top Voted Members
Hot Threads This Week
June 2026 Google Search Observations
AdSense Earnings and Observations - June 2026
Quite quiet in here, anyone know why?
Good Bye AdWords - or whatever you call it these days
Best Learning Path for a Web Development Beginner?
Buying traffic to appear on Google Discover
Home
Forums Index
Browser Side
/
JavaScript and AJAX
2:28 am Jun 28, 2026