javascript button not displaying

后端 未结 1 1800
刺人心
刺人心 2021-01-28 10:41

The following code creates a blue button at one end of a table row that links to a detail page for the client that you are one (the row you are on). This code works in Firefox b

相关标签:
1条回答
  • 2021-01-28 11:13

    How about changing nCloneTd.innerHTML = '<a href="'+this.id+'"><button class="btn btn-mini btn-primary" type="button">Detail</button></a>';


    to nCloneTd.innerHTML = "<a href='"+this.id+"'><button class='btn btn-mini btn-primary' type='button'>Detail</button></a>";

    0 讨论(0)
提交回复
热议问题