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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -