title: How can I send 2 or more variables fron JavaScript to HTML?
body: <p>This is my JavaScript code.         </p>
  
  <pre><code>if (status == google.maps.DirectionsStatus.OK) {
    var warnings = document.getElementById('warnings_panel');
    warnings.innerHTML = '&lt;b&gt;' + response.routes[0].warnings + '&lt;/b&gt;';
    directionsDisplay.setDirections(response);
    showSteps(response);
    // Display the distance:
    distantakm = response.routes[0].legs[0].distance.value / 1000;
    timph = parseInt(distantakm / 60); 
    timpm = parseInt((distantakm / 60 - timph) * 60);
    document.getElementById('distance').innerHTML = "Distanta este de " + distantakm + " metri";
    document.getElementByName('timpul').innerHTML = "Timpul este" + timpm + " minute";
  }
  </code></pre>
  
  <p>I want to send these 3 variables: <code>timph</code>, <code>timpm</code> and <code>distantakm</code> to an HTML fieldset. I tried this version, but it doesn't work. Also, I tried using jQuery, but I don't know exactly how to use it. Please offer me a solution. Thank you.</p>