# jQuery
### Verify if value "value" is inside array "arr"
```js
jQuery.inArray("value", arr);
```
### Get html object by name
```js
jQuery('[name=doctor_name]');
```
### Hide element on mobile, when scrolling page
```js
$(window).scroll(function(){
if ($(window).width() < 480) {
if (jQuery(window).scrollTop() > 32)
$(".favorite").fadeOut(700);
else
$(".favorite").fadeIn(700);
}
});
```