andreregino
1/21/2018 - 4:17 AM

jQuery Básico

jQuery

Verify if value "value" is inside array "arr"

jQuery.inArray("value", arr);

Get html object by name

jQuery('[name=doctor_name]');

Hide element on mobile, when scrolling page

$(window).scroll(function(){
    if ($(window).width() < 480) {
       if (jQuery(window).scrollTop() > 32) 
           $(".favorite").fadeOut(700);
        else
            $(".favorite").fadeIn(700);
    }
});