web hosting
build a website
Browsing articles from "May, 2015"

Move php output on a page using jquery

May 27, 2015   //   by Anthony Devine   //   Website Development tips  //  No Comments
If you have some php code that you can’t access to move it or you are unsure of how to do so, you can alternatively move your php output with jquey. The code is as follows:
if(jQuery(".technologiesWrapper").length != 0){
So the above gets a div id product_tabs_tech_contents and appends the output of the php in that div. The technologiesWrapper is the class of the div that the php code originally sits in, so really all you are doing is moving a load of code that sits in 1 class into another class.