Here is my problem:
$(".Item").each(function(i, obj) {
alert(i.id);
});
i tryed to get each element which class is "Item".
<div class="panel panel-default Item">
<div class="panel-body">
<div class="col-md-4 col-xs-10">
<h5 id="spikeName">{{spikeName}}</h5>
</div>
<div class="col-md-7 col-xs-10">
<h5 id="spikeEffort">{{spikeEffort}} Tag/e</h5>
</div>
<div class="col-md-1 col-xs-1">
<button type="button" class="btn btn-default" onclick="$(this).closest($({{item}})).remove()">
<span class="glyphicon glyphicon-minus" aria-hidden="true"></span>
</button>
</div>
</div>
I need the spikeEffort and Name in a Array (json) to send it to my REST Services.
Any help please?