I am getting an error that says ‘object expected’ when I am calling a method of an element. I am getting this error even if that element exists on the page.
$('#asdf').text();
I am calling this in the Onsucceed method of a pagemethod. What may be the reason behind it?
Maybe you don’t have a reference to Jquery?
Try $(‘#asdf’).length and check if it selects anything.
Another possible issue is that you try to select the element before the DOM is ready
will occur when the DOM is ready