Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~9K People Reached
Favorite Tags
Member Avatar for mattsearle

# Math.round # Hi, could someone please add the math.code function in the code below so that the resulting answer in the div is to two decimal places. <script type = <"text/javascript"> function calculate() { A = document.getElementById('input').value; outDiv = document.getElementById('output'); B =(parseInt(A) * 1.0); //alert(A); D = (parseInt(B) * …

Member Avatar for Taywin
0
190
Member Avatar for mattsearle

Hi I am trying to use the code below more than once within a web page. I have tried changing the id's of the div, getElementid and outDiv, however only one of the scripts will work. Is the outDIV.innerHTML the problem. Inline Code Example Here <link rel="stylesheet" type="text/css"> <style> div …

Member Avatar for mattsearle
0
168
Member Avatar for mattsearle

Hi I have discovered the script below which I would like to work with buttons as opposed to hovering and clicking on the text. <div id = "div1" style="display:block" onclick = "replace()">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ipsum leo, scelerisque at dapibus ac, consectetur vel ipsum. </div> …

Member Avatar for mattsearle
1
8K
Member Avatar for mattsearle

Hi, I'm building a web page and want to be able initiate the download from my website. I researched a bunch of resources and I haven't been to figure out how in the HTML to cause the download to start. I want to give the user the option to download …

Member Avatar for MidiMagic
0
108