<div id="arraydiffid">
    <input type="hidden" name="array_diff[]" value="0" />
    <input type="hidden" name="array_diff[]" value="1" />
    <input type="hidden" name="array_diff[]" value="2" />
    <input type="hidden" name="array_diff[]" value="3" />
    <div class='hello'>
        somethings
    </div
    <input type="hidden" name="array_diff[]" value="4" />
    <span>hello</span>
    <input type="hidden" name="array_diff[]" value="5" />        
</div>
How can I browse only all "input type hidden" children? (and not the rest, as div or span) I tried :
$('#arraydiffid>children').each(function(){
    alert($(this).value());
}); 
                $('#arraydiffid > input[type=hidden]').each(function() {
    if($(this).val()>=param) 
       $(this).val($(this).val()+1);
});
Hope that helps :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With