Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

TypeError: $ is not a function..was working before

leckjApr 27 2013 — edited Apr 29 2013
Hi,

This code was working before, but now gives this error: TypeError: $ is not a function.
I call it as onfocus="save_subjectcode(this.value)"; onblur="restore_subjectcode(this.id)"; of the column element attribute. Is the jQuery library not loaded
by default?

In fact I saved the page to a backup when It was working, and the backup gives same error.

The code will restore the value of any cell in the column,discarding anything entered.

this is in the form header html

<script language="javascript" type="text/javascript" >

var oldsubjectcode = " ";


function save_subjectcode(subjectcode)
{
oldsubjectcode = subjectcode;
}

function restore_subjectcode(subjectcode_id)
{
$("#"+subjectcode_id).val(oldsubjectcode);

}

Please have a look.
Thanks.
Leckraj
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 27 2013
Added on Apr 27 2013
5 comments
465 views