defunkt / jquery-pjax

pushState + ajax = pjax
https://pjax.herokuapp.com
MIT License
16.74k stars 1.97k forks source link

Multiple fragment processed #704

Open bscheshirwork opened 6 years ago

bscheshirwork commented 6 years ago

So, I wish add content from selector and script, but I can't use multiple part of content

$(document).pjax('.content a:not(\'[data-pjax="0"]\')', '.content', {fragment:'.content, script'});

https://github.com/defunkt/jquery-pjax/blob/153262eda33e31119eabb97cd5f14365580a3b35/jquery.pjax.js#L691

I can select only first div for this example

<div class='content'>
</div>
--------------------
another content
--------------------
<script></script>