Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem in simple calculator  RSS feed

 
deepak bhai
Ranch Hand
Posts: 33
  • 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
Posts: 65825
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok its solved ..

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!