HTML :
First of all you need to create a two input box for typing the names, a button for functioning and a <p> tag with an id="lovepercentage" for getting the result.JAVASCRIPT :
Now in the script, When the button clicked it function to find the number in a var lovedata and the value is transfered to id named lovepercentage which is <p id="lovepercentage">.Final Code :
This is the Final Code, You can copy it by pressing Ctrl + C.Result :
Type the name inside the box and press the button to get the result.Your result will appear here.


0 Comments