load link into slider when clicked-ajax php jquery -


I have a problem with this code if any organization can help me pls :( 2 categories in my database and I have a picture in all 2 categories, when the user clicks on any category code, then I want the image loaded in the image slider:

  $ ("# test" .load (' Test.php? Name = '+ categoryname NivoSlider ({effect:' random ', animated: 500, pause time: 3000,});});   

Html code:

gt; & lt; span id = "test">

test.php code

  echo $ des_return   

"Itemprop =" text ">

By looking at my code immediately, I can see 2 errors in my JS:

1) Line 1. $ (" # test) Should be $ ('# test')

2) line 5. Remove the comma i. pauseTi me: 3000, - & gt; pauseTime: 3000

should be PHP:

  echo "& lt; img src = '". $ Return "'alt ='" $ des_return "'title ='" $ Des_return "'/ / gt; 
";

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -