Issue in jscrollpane with jQuery and Prototype-Collection of common programming errors

I am using prototype 1.6 and JQuery 1.5.1 with jsrollpane with autoinitialize parameter. I have a page where I populate my form through Ajax and form has two field one text and another textarea. When I hit type any character on the textbox or textarea, it gives javascript error on the console. When I tried to look into the firebug stack, it showed me jquery pass the control to prototypejs. I am also attaching the javascript stack.

parent is null

var parent = element.parentNode, tagName = parent.tagName.toUpperCase();//prototype.js

replace(element=div.jspVerticalBar, content=”/\=\s*([^'”]])\s]/g”)protot…5618099 (line 2475)

_methodized()protot…5618099 (line 256)

d(a=input#message_subject.textbox, c=div.jspVerticalBar)jQuery…9681949 (line 16)

d(a=div.jspVerticalBar, b=[input#message_subject.textbox], c=undefined)jQuery…9681949 (line 16)

d(a=div.jspVerticalBar)jQuery…9681949 (line 16)

d(a=[div.jspVerticalBar], b=undefined)jQuery…9681949 (line 16)

ae(aO=Object { originalEvent=Event keydown, type=”keydown”, timeStamp=1333007103145, more…})jquery…9940130 (line 10)

d(c=Object { originalEvent=Event keydown, type=”keydown”, timeStamp=1333007103145, more…})jQuery…9681949 (line 16)

d()jQuery…9681949 (line 16)

  1. My problem has been fixed by updating a new version of jquery.

Originally posted 2013-11-09 18:41:26.