• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

my java script is not working

 
raj talatam
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


[Added code tags - see UseCodeTags for details]
 
Matthew Brown
Bartender
Posts: 4567
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you say "it's not working", what do you mean? What is happening? What was meant to happen? Are you getting any error messages (look at the error console). See ItDoesntWorkIsUseless for more.

Edit: though I'll point out one obvious thing. On line 9, what is name? On line 13, what is id? Etc. You haven't defined those variables anywhere.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64721
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, please be sure to use proper indentation. Making your code hard to read will not get you much help.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
name, id, state, etc are not defined anywhere!

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic