Сообщение от Antmike
|
были ли созданы данные блоки
|
Как вариант...
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<!--
<link rel="stylesheet" type="text/css" href="tmp.css" />
-->
<style type="text/css">
</style>
<script type="text/javascript">
$(document).ready(function(){
$('button').click(function(){
alert('Всего блоков - '+$('.point').length);
});
});
</script>
</head>
<body>
<div id="container_address_points">
<div id="point_0" class="point">
<label>Заезд</label>
<div class="input-append">
<input name="address_point_tpl" id="address_point_tpl" class="span8 autocomplete address ac_input" type="text" placeholder="улица" value="" autocomplete="off">
<input name="house_point_tpl" id="house_point_tpl" class="span1 house" style="width:45px" type="text" placeholder="дом" value="">
<input name="case_point_tpl" id="case_point_tpl" class="span1 case" style="width:60px" type="text" placeholder="корпус" value="">
</div>
</div>
<div id="point_1" class="point">
<label>Заезд</label>
<div class="input-append">
<input name="address_point_tpl" id="address_point_tpl" class="span8 autocomplete address ac_input" type="text" placeholder="улица" value="" autocomplete="off">
<input name="house_point_tpl" id="house_point_tpl" class="span1 house" style="width:45px" type="text" placeholder="дом" value="">
<input name="case_point_tpl" id="case_point_tpl" class="span1 case" style="width:60px" type="text" placeholder="корпус" value="">
</div>
</div>
</div>
<button>test</button>
</body>
</html>