I had my jQuery working fine on an html page in dreamweaver, but when
I moved it to a jsp page in the J2EE framework, I started to get this
error:

Error: $("[id$=_y]").live is not a function
Source File: http://localhost:9080/oe/life/viewHealthStatement.action
Line: 131

Why would it work in one place and not the other? Is there something I
need to change in my code?

Here is the full jQuery code:

$(document).ready(function(){
           $('[id$=_questions],[id$=_questionsLink]').hide();
        $('[id$=_y]').live('click',function(){
           var thiis = $(this).attr('id').charAt(1);
           $('#'+thiis+'_questions').show();
           $('#'+thiis+'_questionsLink').show();
           });
        $('[id$=_n]').live('click',function(){
           var thiis = $(this).attr('id').charAt(1);
           $('[id$=_condition]').val("");
           $('[id$=_date]').find('option:first').attr
('selected','selected').parent('select');
           $('#'+thiis+'_questions').hide();
           $('#'+thiis+'_questionsLink').hide();
           });
        $('[id$=toggle]').live('click',function(){
           var thiis = $(this).attr('id').charAt(0);
           $('#'+thiis+'_questions').toggle();
           $(this).val($(this).val() == 'hide additional questions' ? 'show
additional questions' : 'hide additional questions');
           });
});


Thank you for any help you can give


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to