Find Jobs
Hire Freelancers

Check visibility on class

$30-50 USD

Closed
Posted over 16 years ago

$30-50 USD

Paid on delivery
I have several forms that use some prebuilt Javascript by SpryAssets. I have added to the page DIVs, like so: Section1 Section2 Section3 Section4 I change the visibility on these, as the user steps through the form. Normally, if the form is all on one page, the Spry javascript controls will prevent the form from being submitted if one of the controls doesn't pass validation. I would like to prevent the user from going to the next div section if Spry has marked one of the controls as 'not complete' or 'invalid'. Spry marks fields as invalid in the following way: Every form control has a below it. When the page loads, that class is shown in the stylesheet as '.display=none'. So it's not being shown until the user blurs off the textfield and the validation determines whether it meets validation requirements. I would like to check if any of the fields on my div have that class set to visible, if so I don't want the user to be able to click 'next' button to the next section. I would like to be able to specify any class name, but effectively I am looking for some Javascript that will - when a user presses a button, it will interrupt the normal action of that button if any have a style display of anything other than 'none'. So I just need a script that runs when the user clicks, that takes in the 'div' name to check, and the 'class' name to check, and if everything is ok, the next button doest what I have it set to normally do, if not then it says 'please review the fields some are missing or inactive'. ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables): a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment. b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request. 3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). ## Platform Javascript, HTML
Project ID: 3254145

About the project

2 proposals
Remote project
Active 17 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
2 freelancers are bidding on average $31 USD for this job
User Avatar
See private message.
$20.40 USD in 1 day
4.0 (1 review)
2.5
2.5
User Avatar
See private message.
$40.80 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
United States
0.0
0
Member since Aug 30, 2007

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.