﻿$(function() {





    // Measures the textwidht of an element
    // $('.calltoaction').textWidth()

    $.fn.textWidth = function() {
        var html_org = $(this).html();
        var html_calc = '<span>' + html_org + '</span>'
        $(this).html(html_calc);
        var width = $(this).find('span:first').width();
        $(this).html(html_org);
        return width;
    };

});


