This is a migrated thread and some comments may be shown as answers.

ReferenceError: $find is not defined

2 Answers 817 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Goran
Top achievements
Rank 1
Goran asked on 14 Feb 2013, 09:54 AM
Hi,

I've tried to use this in JavaScript code:

var result = $find("<%= HiddenField2.ClientID %>");

But, I've got the following error:

ReferenceError: $find is not defined

I use Firefox and Firebug.

Could someone help with this issue?

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 14 Feb 2013, 10:19 AM
Hi,

Try accessing the HiddenField as shown below.
JS:
var result = document.getElementById("HiddenField2");

Thanks,
Shinu
0
Goran
Top achievements
Rank 1
answered on 14 Feb 2013, 10:35 AM
Thank you, but the original problem is this one:

How to use JavaScript variable from popup window in code behind?

I only asked this because I wanted to try something else.

Could you help me with that, please?
Tags
Grid
Asked by
Goran
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Goran
Top achievements
Rank 1
Share this question
or