<input type="text" name="tel[]" value="">
<input type="text" name="tel[]" value="">
<input type="text" name="tel[]" value="">

$("input[name='tel[]']")[0].value = '010';
$("input[name='tel[]']")[1].value = '1234';
$("input[name='tel[]']")[2].value = '5678';

 

<!doctype html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title>Document</title>
		<link href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="https://code.jquery.com/jquery-1.12.4.min.js" ></script>
		<script type="text/javascript" src="https://code.jquery.com/ui/1.12.1/jquery-ui.js" ></script>
	</head>
	<script type="text/javascript">
	$(document).ready(function() {
		$(".table").sortable();
	});
	</script>
	<body>
		<ul class="table">
		  <li>테이블 1</li>
		  <li>테이블 2</li>
		  <li>테이블 3</li>
		  <li>테이블 4</li>
		  <li>테이블 5</li>
		</ul>
	</body>
</html>

 

+ 최근 게시물