I’m using jquery’s .load function to load a page in a container , but I need to pass some parameters with the url, javascript variables hold the value of the parameter
var data = "xyz";
$("#toggleText").load("inner/playlist.php",{name:data});
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
its always good idea to use quotes for the param names.
also, try to put the callback function to check it it actually does anything: