Friday, 15 April 2011

javascript - Load external html file to div and use its js functions -



javascript - Load external html file to div and use its js functions -

i have div:

<div id='dialog'></div>

now want load div external html file , utilize js functions.

i know can load using jquery.load() , works fine, problem want utilize html js functions.

the main problem have several divs load html file them , want when i'm activating js function work on specific div.

pass parameter view loading indicate container of loaded view:

jquery.load(url, { containerid: 'dialog' })

javascript jquery html

No comments:

Post a Comment