javascript - jQuery $(selector)[Property](Value) -


i want ask jquery syntax. have found syntax on bootstrap.js there are:

$('.class')['height'](0) 

and understand this, equal with:

document.getelementsbyclassname('class')[0].style.height=0 

but, have found again same syntax with:

$('.class')['height']($('.class')[0]['scrollheight']) 

and

$('.class')['height']($('.class')['height']())(0).offsetheight 

what is? not understand this.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -