Ajax with JQuery

I have used Ajax link and live validation in index.rhtml
Ajax link requires JavaScript “prototype” and live validation requires
i got “element.dispatchEvent is not a function” on the firebug console
when i used “prototype” and “jquery” in same page index.rhtml
after i removed javascript “prototype” library, i got “Ajax is not
defined” on the firebug console when i clicking ajax link.
how can i use both ajax and jquery in the same page?
Can anybody give me a solution for this?

For example:

<%=javascript_include_tag “prototype”%>
<%=javascript_include_tag “jquery”%>
<%= javascript_include_tag ‘livevalidation/jquery.validate’ %>
<%= javascript_include_tag ‘livevalidation/jquery.validation.functions’
<%= stylesheet_link_tag ‘livevalidation/jquery.validate’ %>
<%= stylesheet_link_tag ‘livevalidation/style’ %>

<%=link_to_remote “new user”,:url=>{:action=>:a},:update=>“div”%>

<% form_for(@user) do |f| %>

<%= f.label :name %>
<%= f.text_field :name %>

<%= f.submit "Register"%>

<% end %>

Try using the noConflict setting

On Jun 2, 8:06 am, Manivannanj J. [email protected]