November 27, 201114 yr I have been asked to develope an eye sight test for a driving school with jquery to randomly display a number plate on top of a background image, and have user interaction to input the displayed plate into a text box to confirm that they can read the plate. I know very little much about jquery, and am only just getting my head around html5 and would appreciate any help that anyone could give.
November 30, 201114 yr This is just a partial answer/suggestion - and not jQuery, sorry! - but generating the random numbers/letters for the number plate and validating the user's typed in answer would easily be done with PHP. You could have an array 0 to 35 and in it have values a, b, c, etc and 0, 1, 2, etc. Then use the rand() method to pick a random number which will correspond to a value in the array. Repeat for each letter of the number plate. Then use loops to check if the user has entered the correct value and it matches. Perhaps this is possible with jQuery, i don't know much about that.
Create an account or sign in to comment