URLがサービスを照会するアンカータグhrefを構築しようとしています
コード:
var href = $("#id").text();
$('<a href="#" id="testselect">button</a>').insertAfter("#searchtextselecttest");
$("#testselect").attr('href','http://something/ID='+ href);
リンクをクリックすると、「something/ID =」が表示され、hrefは追加されず、#idもリンクです!!