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
Post a Comment