In the end, I decided to use the ajax method, to give me the access to html to play about with. I got what I wanted with 1 ajax call:
$('.ajaxdropdown').change(function(){ $.ajax({ type: "GET", url: "myscript.php", data: "c_name="+escape($(this).val()), success: function(html){ $("#charges-gsm").html(html); $("#charges-gsm-faq").html(html); $("#charges-gsm-prices").html(html); } }); }); On Jul 9, 5:20 pm, Carl Von Stetten <[EMAIL PROTECTED]> wrote: > You might try adding the .each() function before your .load() call. > > Carl > > Pickledegg wrote: > > its 'c_name'. > > > I've discovered something now, if I just use 1 div as the selector to > > update only 1 div, > > > $('#charges-gsm) > > > it works fine. But when I add multiple ones: > > > $('#charges-gsm,#charges-gsm-faq,#charges-gsm-prices') > > > thats when I get the error...I know that the divs exist and it works > > in FF, but why not IE? > > > On Jul 9, 4:31 pm, Mike Alsup <[EMAIL PROTECTED]> wrote: > > >>> I have the following code that loads on $(document).ready: > > >>> ------------------------------------------------------------------------------------- > >>> $('.ajaxdropdown').change(function(){ > >>> $('#charges-gsm, #charges-gsm-faq, > >>> #charges-gsm-prices').load('/ > >>> mobell/includes/html/gsm-tariff.php?c_name='+escape($(this).val())); > >>> ------------------------------------------------------------------------------------- > > >>> Its pretty self explanatory, but to summarise I have three divs on my > >>> page - (#charges-gsm, #charges-gsm-faq & #charges-gsm-prices) which > >>> update with the content of the ajax load. > >>> The trigger for this event is from dropdowns on the page, which have > >>> the class '.dropdown'. > > >>> All works well in Firefox & Safari, but in IE (6&7) I get no content > >>> in my divs and the following error: > > >>> 'nodeName' is null or not an object > > >>> I've narrowed it down to the line that mentions .ajaxdropdown, so I > >>> think its because IE is having trouble finding the element, but I've > >>> tried putting other selectors in instead of .ajaxdropdown, and its the > >>> same error. > > >>> Can anyone see why it may be happening? Thank you. > > >> What is the "name" attribute of the .ajaxdropdown element?