jquery - Remotely fatch content for Panel in Bootstrap -


i implementing bootstrap panel in 1 webpages in project let - index.html. now, need is, when click on header of panel open accordion data, data should come other page let call - accorddata.html

i search on it, suggestion on remote data fetch modal.

how can fetch data in panel other page when click on accordion?

try this:

$("#foo").click(function(){      $.ajax({        method: "get",        url: "some.php",        success: function (data)       {            $("#bar").html(data);       }        }); }) 

assuming return formatted html string.


Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -