There is a slider range from 1 to 10 and if the user puts in on ranges 8 to 10, there should be an alertbox concerning those ranges when they clicked on the submit button. I've tried it but no luck. Here are my codes

Javascript

```
function showValue1(newValue)
{
  document.getElementById("range1").innerHTML=newValue;
}

$('submit1').submit(function () {
    if (newValue > 8 && newValue <10) {
        alert('TEST');
        return false;
    }
});

```

HTML

```
<div id="assess">
<div class="container">
<span id="range1">0</span>
<p class="mild">No pain</p>
<input name="pain" id="s1" type="range" min="0" max="10" value="0" step="1" oninput="showValue1(this.value)" />
<p class="extreme"><span class="adjust">Worst possible pain</span></p>
</div>    
<input id="submit1"type="submit" name="submit"value="Submit"></input></p>

```