javascript - Create Hyperlink, add to body and then Add string beside Hyperlink -
i want create hyperlink using jquery name "dashboard" , add label beside hyperlink name " >> category".
so, string " dashboard >> category " dashboard underlined.
how can using jquery ?
var link = $('<a>dashboard</a>') .appendto($('body')); $('<label> >> category</label>').insertafter(link);
but david thomas points out, label not best tag use this. try <span>
instead.
var link = $('<a>dashboard</a>') .appendto($('body')); $('<span> >> category</span>').insertafter(link);
Comments
Post a Comment