Nice Works perfectly. Exactly what i need. Never considered the
function each for this purpose!.
On Jan 7, 5:07 pm, Ricardo Tomasi wrote:
> In this line:
>
> $(".row > div").next("[Type="+$(this).attr("Type")+"]")
>
> 'this' is refering to the 'window' object or some other context, not
> the ele
In this line:
$(".row > div").next("[Type="+$(this).attr("Type")+"]")
'this' is refering to the 'window' object or some other context, not
the element you just selected.
$('.row > div').each(function(){ //inside each 'this' is the current
element
var $this = $(this), next = $this.next();
2 matches
Mail list logo