I have stored a html in a variable using javascript now i need to fetch particular div value from that variable using javascript
var colVal = $(this).jqGrid('getCell', rowid, iCol);
var element = colVal;
this is the output of colVal
<div style='text-align:center;'>
<div>
<input type='range' min='5' max='"10"' step='1' value='3' data-rangeslider>
<output id='val'>2</output>
</div>
</div>
Now i need to get that value 2 using id 'val'