English 中文(简体)
j 优质数据表
原标题:jQuery Datatables ul and li format

I am new in the jQuery datable plugin. I have implemented some datatables in the tr td format. But my requirement is to implement the records in the ul and li list format. Currently I have datatables where the records are showing in the in normal table format where each row containing one record. But my desired output is some thing like in the list format like:

<ul>

<li>
<div class="grid-picto user">
<small>Administrator</small>
<p class="grid-name">Test Uset1</p>
<p class="grid-details">Age: <b>28</b><br>
Gender: <b>male</b><br>
Country: <b>USA</b></p>
</div>
<ul class="grid-actions">
<li><a href="#" title="Edit" class="with-tip"><img src="pencil.png" width="16" height="16"></a></li>
<li><a href="#" title="Delete" class="with-tip"><img src="cross-circle.png" width="16" height="16"></a></li>
</ul>
</li>

<li>
<div class="grid-picto user">
<small>Administrator</small>
<p class="grid-name">Test Uset2</p>
<p class="grid-details">Age: <b>28</b><br>
Gender: <b>male</b><br>
Country: <b>USA</b></p>
</div>
<ul class="grid-actions">
<li><a href="#" title="Edit" class="with-tip"><img src="/admin/assets/images/icons/fugue/pencil.png" width="16" height="16"></a></li>
<li><a href="#" title="Delete" class="with-tip"><img src="/admin/assets/images/icons/fugue/cross-circle.png" width="16" height="16"></a></li>
</ul>
</li>
</ul>

Can anyone help me on this?

问题回答

例如,使用职能 php str_replace(





相关问题
getGridParam is not a function

The HTML: <a href="javascript:void(0)" id="m1">Get Selected id s</a> The Function: jQuery("#m1").click( function() { var s; s = jQuery("#list4").getGridParam( selarrrow )...

selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

jQuery cycle page with links

I am using the cycle plugin with pager functionality like this : $j( #homebox ) .cycle({ fx: fade , speed: fast , timeout: 9000, pager: #home-thumbs , ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

Wrap text after particular symbol with jQuery

What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself. This is my html: &...

热门标签