我需要在pager的文本中添加标签没有标签

时间:2015-02-02 11:29:01

标签: jquery css

我需要添加" 1"在标签"以相同的顺序 ![我需要添加" 1"在标签"以相同的顺序"] [1]

<tr class="grid-pager">
      <td colspan="9">1
          <a href="/HrRequests?page=2">2</a> 
          <a href="/HrRequests?page=3">3</a> 
          <a href="/HrRequests?page=4">4</a> 
          <a href="/HrRequests?page=5">5</a> 
          <a href="/HrRequests?page=2">»</a> 
      </td>
 </tr>

2 个答案:

答案 0 :(得分:1)

<tr class="grid-pager">
    <td colspan="9">
        <a href="/HrRequests?page=1">1</a> 
        <a href="/HrRequests?page=2">2</a> 
        <a href="/HrRequests?page=3">3</a> 
        <a href="/HrRequests?page=4">4</a> 
        <a href="/HrRequests?page=5">5</a> 
        <a href="/HrRequests?page=2">»</a> 
    </td>
</tr>

你错过了&lt; a href ...来自第一个标签。

答案 1 :(得分:0)

生成的代码&#34; 1&#34;没有标签...... 我们需要将标签添加到&#34; 1&#34;

to will be <span>1</span> from <td colspan="9"> 1 ....