Calculate the volume

HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<table>
        <tbody>
            <tr>
                <td>Width</td>
                <td><input type="text" id="width"/></td>
            </tr>
            <tr>
                <td>Length</td>
                <td><input type="text" id="length"/></td>
            </tr>
            <tr>
                <td>Depth</td>
                <td><input type="text" id="depth" oninput=getvalues(this.value)/></td>
           
            </tr>
        </tbody>
    </table>

JavaScript

function getvalues(w,l,d){

        //Find the width in mm
        var width       = widthVal

        //Find the length in mm
    
        var length      = lengthVal

        //Find the depth in mm
  
        var depth       = depthVal

        //Find the total volume in mm
        var volumeInMillimeters = length * depth * width;

        //try to convert it back to meters
        var volume = volumeInMillimeters;
        alert(volumeInMillimeters);
        alert(volume);






    });