the code below concatenates the two variables instead of adding them to get one value. any help on how to correct this?
<script type="text/javascript">
function calculatetotal1() {
var mal = document.getElementById('<%=txtadults.ClientID%>').value;
var child = document.getElementById('<%=txtnumchilderen.ClientID%>').value;
var res = mal + child;
document.getElementById('<%=txttotal.ClientID%>').value = res;
}