jQuery getAttribute -


i have "uid" attribute , it's value on "body" tag...

$(document).ready(regfunct());  function regfunct(){    alert($("body").attr("uid")); } 

but says "undefined". wrong?

try:

$(document).ready(function(){       regfunct();  });  function regfunct(){      alert($("body").attr("uid"));  } 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -