Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    Thread Starter s3korea48

    (@s3korea48)

    Does this work on cfdb-datatable? Ive tried to insert code right after the cfdb shortcode but it does not work. My column name is Website

    <script type=”text/javascript”>// <![CDATA[
    (function ($) {
    $(‘td[title=”Website”] div’).each(
    function () {
    $(this).html(‘‘ + $(this).html() + ‘‘);
    })
    })(jQuery);
    // ]]></script>

    Plugin Author Michael Simpson

    (@msimpson)

    You may have some syntax error. Try:

    <script type="text/javascript">
    (function ($) {
      $('td[title="Website"] div').each(
        function () {
          $(this).html('<a href="http://' + $(this).html() + '">' + $(this).html() + '</a>');
    })
    })(jQuery);
    </script>

    Sorry to bother you, I used the code below and it works. Thanks I have one question. In the table the link appears as “www.//*****” Is there a way so what appears is different letters like the word “site” but have it still link to the page http://www.//***

    [cfdb-table form=”myform”]
    {{AFTER}}
    <script type=”text/javascript”>// <![CDATA[
    (function ($) {
    $(‘td[title=”Website”] div’).each(
    function () {
    $(this).html(‘‘ + $(this).html() + ‘‘);
    })
    })(jQuery);
    // ]]></script>
    {{/AFTER}}
    [/cfdb-table]

    Nevermind I found it

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘is there a way to make websites clickable?’ is closed to new replies.