File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in simple calculator

 
deepak bhai
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



i wanted to make a simple calculator, i wanted to see if we can pass the element by document.getElementById("value") and then extract it later in the java script code .. but i dont know where it go wrong.. please help
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64182
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your HTML syntax is severely screwed up. Check the quoting of your attributes. Also, do your onclicks really do what you intend (even if they were correctly declared)?

Sloppy syntax such as this is exactly why Unobtrusive JavaScript -- in which no script is included in the document markup -- is a great idea.
 
deepak bhai
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok its solved ..

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic