Skip to content Skip to sidebar Skip to footer

Jquery Uncaught Typeerror: Cannot Read Property 'text' Of Null

Problem: I am loading a modal form from an ajax call. Within the modal, I have a span element holding an email address. I am needing to capture the value of the span element in ja

Solution 1:

If lblHRedeemEmailAddress didn't exist, jQuery would return an empty result set, upon which you would still be able to call text. $ is probably referring to some other library, such as prototype.

Read up on noConflict or create a closure where $ is set to jQuery:

(function($) {
   // for anything in here, $ will be jQuery
})(jQuery);

Post a Comment for "Jquery Uncaught Typeerror: Cannot Read Property 'text' Of Null"