Jquery | SoloLearn: Learn to code for FREE!

0

Jquery

I have to create a function to calculate total points for a series of races. Ie 2018 winter series any one help??

3/5/2018 8:48:05 AM

Matthew Gibson-storey

7 Answers

New Answer

0

what have you done to this point?

0

Created the form 2 select options A number field date field I’m assuming i need to create a variable and store them into an array? I am a noob its for a uni assignment

0

We don’t have the php yet i just need to have created the function

0

can you put your code in the code playground? It would be easier for us to help. after that you can post the link to it here.

0

Will do cheers

0

<!doctype html> <html> <head> <meta charset="utf-8"> <title>enterprog</title> <link href="css/style.css" rel="stylesheet" type="text/css"> <link href="css/normalizer.css" rel="stylesheet" type="text/css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <script src="http://code.jquery.com/jquery-2.1.1.min.js"></script> <script src="js/jquery.validate.js"></script> </head> <button onclick="window.location.href='logreg.html'" class="back">Back</button> <div class="topnav" id="myTopnav"> <a href="welcome.html">Home</a> <a href="enterprog.html">Enter Progress</a> <a href="viewprog.html">View Progress</a> <a href="mapfeat.html">Map</a> <a href="javascript:void(0);" style="font-size:15px;" class="icon" onclick="myFunction()">&#9776;</a> </div> <body> <img alt="" src="images/ironman.gif" class="image"> <div> <form id="progress" method="post" action="welcome.html"> <fieldset> <legend> Enter Progress</legend> <select name="club" id="club" class="prog" required> <option value="">Select Club</option> <option value="Preston Pirates">Preston Pirates</option> <option value="Mid Lancs">Mid Lancs</option> <option value="Blackpool">Blackpool</option> </select> <select name="season" id="season" required class="prog"> <option value="">Select Season</option> <option value="Summer">Summer</option> <option value="Winter">Winter</option> </select> <input class="prog" type="number" placeholder="Enter Points" required> <input class="prog" type="date" placeholder="Choose a Date" required> <input type="submit" value="Submit" class="signupbtn"> </fieldset> </form> </div> <script> $("#register").validate(); </script> <script> function myFunction() { var x = document.getElementById("myTopnav"); if (x.className === "topnav") { x.className += " responsive"; } else { x.className = "topnav"; } } </script> </body> </html>

0

thats my code so far. i know its not tidy sorry