Skip to content

Enhancement: Support for HTML in Tabs not just plain text #49

@mcpacosy

Description

@mcpacosy

In jquery.coda-slider-3.0.js one could change the second $(this).text() to $(this).html() in line 143 resulting in this line

$($(self.sliderId).parent()).find('.coda-nav ul').append('<li class="tab' + (n+1) + '"><a href="#' + (n+1) + '" title="' + $(this).text() + '">' + $(this).html() + '</a></li>');

This allows the interpretation of the content within the <a> element as HTML and thus adds support for e.g. line breaks, bold text and so on.

Thanks and kind regards,
Martin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions