Answer found: D
I'm new to jQuery, and I know that there are some really nice quick tricks that do such things, so I know how to answer this question in JavaScript in 30 lines of code.
Current Code:
$('<li>, <a>', {
id: '#tab-' + count
}).html($(this).text()).appendTo('#uls');
I want to add a tagwith dynamic href. Do I need to do this in a separate piece of code, or can I somehow integrate it with the current code.
What I'm trying to create:
<li><a href="#tabs-1"> text describing url </a></li>
source
share