$(input[name=variable])
<input type="text" name="barname' + num + '" class="field" value="' + RangesNames[num] + '" style="width: 300px;">
$("input[name=" + variable+ "]")