Help get javascript to load

puggles 03 Feb, 2013
I finally managed to get a dropdown box to dynamically load with options to hide and show per selection. I have since changed my HTML to be custom (instead of the wizard). I also added in "events" tab the action to Load JS under "On Load".

Dynamic file - no
$("#status").change ( function () {
    var targID  = $(this).val ();
    $("div.style-sub-1").hide ();
    $('#' + targID).show ();
});

But it doesn't load into the page. Can you please advise what i am doing wrong.

Thank you.
Max_admin 07 Feb, 2013
Hello,

This code is using JQuery, do you have JQuery loaded on this page ? please check the page source, also this code will be triggered when you change the value of the element with id="status"

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
puggles 17 Feb, 2013
Yes that is correct. How do i get jquery to load?
GreyHead 17 Feb, 2013
Hi puggles,

I suggest that you don't use JQuery unless you are using Joomla! 3.0 as it can cause conflicts with the MooTools library that is used by Joomla! and ChronoForms.

Bob
This topic is locked and no more replies can be posted.