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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -