[jQuery] Re: Multiple Jquery on one page

2009-07-14 Thread Sarm
Liam, You are the Man, thankyou so much., It's working now. ThankYou for your time. On Tue, Jul 14, 2009 at 9:21 PM, Liam Potter wrote: > > remove the Jquery.js, as that is an old version. In the sublist script find > this line > > $("#"+child+' opti...@value="'+ childVal > +'"]').attr('selected

[jQuery] Re: Multiple Jquery on one page

2009-07-14 Thread Liam Potter
remove the Jquery.js, as that is an old version. In the sublist script find this line $("#"+child+' opti...@value="'+ childVal +'"]').attr('selected','selected'); remove the @ symbol, so you have $("#"+child+' option[value="'+ childVal +'"]').attr('selected','selected'); You shouldn't just

[jQuery] Re: Multiple Jquery on one page

2009-07-14 Thread Mean Mike
ok so show me how you would put them together then, also are you getting any errors ? On Jul 14, 11:04 am, Sarm wrote: > If i will remove this following > >   >     >     >     >     >     $(function() { >         $("#theDate").datepicker({altField: '#theDate', altFormat: > 'dd-mm-yy'}); >  

[jQuery] Re: Multiple Jquery on one page

2009-07-14 Thread Sarm
Thanks for reply but both jquery files are related plugin. If i will delete one jquery file then related will stop work. I know one jquery file is enough so if i will remove this one then Sublist part will be stop work and if i will remove this one then calender will stop work. On Tue, Ju

[jQuery] Re: Multiple Jquery on one page

2009-07-14 Thread Sarm
If i will remove this following $(function() { $("#theDate").datepicker({altField: '#theDate', altFormat: 'dd-mm-yy'}); }); $(function() { $("#theDate1").datepicker({altField: '#theDate1', altFormat: 'dd-mm-yy'}); }); then above one will

[jQuery] Re: Multiple Jquery on one page

2009-07-14 Thread Liam Potter
You are including the jquery library multiple times, you only need to call jquery once. eg $(function(){ $("#selector").plugin(); $("#selector").plguin(); }); Mean Mike wrote: I'm confused are you saying this doesn't work ? function makeSublist(parent,

[jQuery] Re: Multiple Jquery on one page

I'm confused are you saying this doesn't work ? function makeSublist(parent,child,isSubselectOptional,childVal) { $("body").append(""); $('#'+parent+child).html($("#"+child+" option")); var parentValue = $('#'+parent).a

[jQuery] Re: Multiple Jquery on one page

Thanks for reply me, I am placing following code on page HEAD. function makeSublist(parent,child,isSubselectOptional,childVal) { $("body").append(""); $('#'+parent+child).html($("#"+child+" option")); var parentValue =

[jQuery] Re: Multiple Jquery on one page

what plugs are you referring to ? could you show us how your importing jquery and plugins Mean Mike On Jul 14, 7:46 am, Sarm wrote: > Hi Everyone, > > Many time i am getting one problem with Jquery when i am using more > then one jquery plugin on same page then only one plugin works which > wil