Jquery | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Jquery

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

5th Mar 2018, 8:48 AM
Matthew Gibson-storey
Matthew Gibson-storey - avatar
7 Answers
0
what have you done to this point?
5th Mar 2018, 8:56 AM
Ulisses Cruz
Ulisses Cruz - avatar
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
5th Mar 2018, 8:58 AM
Matthew Gibson-storey
Matthew Gibson-storey - avatar
0
We don’t have the php yet i just need to have created the function
5th Mar 2018, 8:59 AM
Matthew Gibson-storey
Matthew Gibson-storey - avatar
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.
5th Mar 2018, 9:02 AM
Ulisses Cruz
Ulisses Cruz - avatar
0
Will do cheers
5th Mar 2018, 9:03 AM
Matthew Gibson-storey
Matthew Gibson-storey - avatar
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>
5th Mar 2018, 10:07 AM
Matthew Gibson-storey
Matthew Gibson-storey - avatar
0
thats my code so far. i know its not tidy sorry
5th Mar 2018, 10:07 AM
Matthew Gibson-storey
Matthew Gibson-storey - avatar