Rick,

 

Use: $("#mycfpagecontent").load("mycfpage.cfm?User_ID=" + User_ID);

 

Look at where the quotes close. You are concatenating the var at the end.

 

Michael

 

 

 

  _____  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Rick Faircloth
Sent: Wednesday, February 28, 2007 10:29 AM
To: 'jQuery Discussion.'
Subject: [jQuery] What's wrong with this code?

 

Ok. so I had working jQuery/AJAX code, but I started

tinkering with it and now it's not working. see anything

wrong with what's below?

Thanks!

Rick

<script type="text/javascript">

    $(document).ready(function(){

        $("#User_ID").change( function() {

            var User_ID = $(this).val();

        $("#mycfpagecontent").load("mycfpage.cfm?User_ID= + User_ID");

        });

        });

                

</script>

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to