javascript - Variable in AJAX url -


how can use variable within ajax call url?

so far have following:

id = $(this).children('span.title').attr('data-id');  $("#test").load("http://localhost:8888/projects/superfreerespo/ + id/ .gamebox-ops"); 

there wrong way have declared url being relatively knew ajax little unsure going wrong.

just point out .gamebox-ops not part of url, class of container trying call ajax

$("#test").load("http://localhost:8888/projects/superfreerespo/" + id + "/ .gamebox-ops"); 

not related ajax, string concatenation wrong.


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -