aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes problem in simple calculator Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "problem in simple calculator" Watch "problem in simple calculator" New topic
Author

problem in simple calculator

deepak bhai
Ranch Hand

Joined: Apr 22, 2011
Posts: 32



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

Joined: Jan 10, 2002
Posts: 56233
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
deepak bhai
Ranch Hand

Joined: Apr 22, 2011
Posts: 32
ok its solved ..

 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: problem in simple calculator
 
Similar Threads
How to remove Textbox Element using DOM in HTML
Need Help With Dynamic text box in JSP
Problem in getting table cell value in HTML using java script
Help for JavaScript in Struts 1
problem with jsp for reset() method