Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Why is 'this' not the jQuery selector? Reply To: Why is 'this' not the jQuery selector?

#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'));
});