jQuery function returns null (Wordpress) -


i trying integrate jquery function wordpress page. tests carried out locally works not on wordpress page. function gets first column value of row selected table , saves local storage displayed on page. not seem issue wordpress have jquery function preforms similar , works. using sogo web development plugin insert java script in header , footer.

said function below:

var j = jquery.noconflict();  j("#table1 tr").click(function(){      var b = j(this).children().closest("td").html();      localstorage.setitem("names", json.stringify(b));   });     

any appreciated.

thanks.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

Python Tornado package error when running server -