Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.list-group-item').on('click', function(e) {
- e.preventDefault();
- var url = $(this).attr('href');
- getCMS(url);
- })
- function getCMS(href) {
- $.ajax({
- url: href +'?content_only=1'
- })
- .done(function(data) {
- var doc = $.parseHTML(data);
- doc = $(doc).filter('.cms');
- console.log('Pobieram dane z:' +href);
- console.log(doc);
- });
- }
Add Comment
Please, Sign In to add comment