javascriptjqueryregexautolink

Can anyone help me with working examples of gregjacobs/Autolinker.js


I am trying to make a text links on a page active hyperlinks. Every time new text links are added to the page via the form, I need the atolink script to rerun so newly added text links are also made active hyperlinks without reloading the entire page.

This is the form


Solution

  • Thats because document.getElementById( 'testing' ) is returning null.. and you are trying to get innerHTML of null object..

    It is returning null because your script is loaded before <div id="testing">. Move the script below it and it will work..