jquery - Not loading page content and submitting forms? -
the next code should load info of linked page; submit form[0]
on page , repeat every .2 seconds
; code giving me error "syntaxerror: failed execute 'queryselector' on 'document': '[object htmldocument]' not valid selector."
how prepare this? run code in google chrome console. thanks.
$(document).ready(function() { setinterval(function() { $.get( "http://m.roblox.com/catalog/verifypurchase?assetid=1558850&type=robux&expectedprice=2", function(data) { document.html(data); document.forms[0].submit(); }); }, 200); });
it throws error because can't read document valid jquery element. note .html()
jquery method. document.write()
1 utilize document.
jquery
No comments:
Post a Comment