Hacker News new | ask | show | jobs
by lukaszg 4508 days ago
// run in firebug and click & enter input... $('#answer').click(function(e){ var value = eval($('#question').text().replace('=', '').replace('รท', '/').replace('x', '*').replace(/\s/g, '')); console.log($('#question').text() + value); this.value = value; })