javascript - Start function after content generated -


loadjson(url, callback) - function callback load json data. data callback , generate page (function onclick):

    function getform(some, param) {      loadjson('tables.json', function (response) {          var list = json.parse(response);          result += - clever - code;          document.getelementbyid('ol').innerhtml = result;          document.getelementbyid('hidediv').classname = '';      });  } 

my question how start other function, after form generated? , function must active till form change again (it's radio buttons listener). don't want add onclick= element of form.

is possible?

you can add click handler radio buttons in loaded part:

 $("input:radio").click(function()  {       alert("click handled!");  }); 

Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -