[Solved] How to get Jquery value in php [closed]


Remove the $() stuff around your result string. Also, you should check to make sure g.time.time isn’t zero before division.

var speed = (g.time.time === 0 ? 0 : Math.floor( (Math.ceil(g.score.score / 5) / g.time.time) * 60))
var result="<ul><li>You type "+g.score.score+' characters in '+g.time.time+' seconds.</li><li><u>Your speed</u> : about ' + speed +' words per minutes!</li></ul>;

Here is a JS Fiddle demo

2

solved How to get Jquery value in php [closed]