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