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
Post a Comment