Jump to content
MakeWebGames

JavaScript Issue


NonStopCoding

Recommended Posts

Hi was wondering if anyone could try help me with this problem i am having. For some reason the js code i have is not working on my game but it works on js fiddle ill post the code see if anyone can help thanks in advance.

Ok so what i have is a input field where users can type in the box for every character used it should show 100 * character next to the input box but for some reason its not working on my game but does on js fiddle

I have tried to add the script to the part of the file with no luck also have tried adding it into the head tags of my header.php still no luck i have tried a external file and still no luck hehe can't figure why it wont work :(

Edit: Forgot to mention its not showing anything on key up

Code that handles the form

http://pastebin.com/bS7ccQy3

Js Code

http://pastebin.com/sJs1qhHh

Js fiddle

https://jsfiddle.net/AZKyn/

Edited by NonStopCoding
Link to comment
Share on other sites

Have you tried using Chrome's debugging tools to see if you're getting any conflicts?

fixed it was posting the js code before the form which was causing it not to work now just need to make it so the $ sign instead of just numbers

EDIT: nvm figured that out too thanks for the idea to check js console keep forgetting that thing is there haha

Edited by NonStopCoding
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...