Please help me with that syntax? Firebug keeps telling me the error, which I have not tried
$ (document) .ready (function () {$ (". Custompage"). Click (function) (var splitter = (This.id) .split ("-") var thepage = splitter [$]; $ ("# myblock") SlideUp (); $ .ajax ({type: "post", url: "userpagesajax.php ", Data: {pageid: thepage, siteid:" Siteid. "}, Success: function (response) {$ (" # myblock "), slide down;})}}})}}
correct syntax -
$ (document) .ready (Function () {$ ("Custom Page") Click (Funk $ {Ad: "post"} {var splitter = (this.id) .split ("-"); var thepage = splitter [1]; $ ("# myblock") .slideUp (); $. , Url: "userpagesajax.php", data: {pageid: thepage, site id: "'. $ Siteid.'"}, Success: function (response) {$ ("# myblock"). SlideDown (Response);} / / You had extra;)}};});}); // You were not locked.
No comments:
Post a Comment