Home › Forums › JavaScript › Why is 'this' not the jQuery selector? › Reply To: Why is 'this' not the jQuery selector?
June 11, 2015 at 12:07 am
#203562
Ilan Firsov
Participant
Not really sure I understand what you are trying to do, but try
$(document).ready(function() {
var $element = $('#element');
$element.impulse(range: $element.height());
});
or
$(document).ready(function() {
(function(){
this.impulse(range: this.height());
}).call($('#element'));
});