Closed wmktz1 closed 5 years ago
Unfortunately search in attributes is not supported for now :(
Thanks for your answer
However, new problem is raised. I change my input value. My table has be sorted , then i add one item. new item will be sort, commandData`s index is invalid.
<!-- JPList-->
<script>
$('document').ready(function(){
$(".desc input").each(function(){
$(this).prevAll(".hiddenInput").text($(this).val());
});
$('#goodslist').jplist({
itemsBox: '.goodsData'
,itemPath: '.good-item'
,panelPath: '.jplist-panel'
});
});
</script>
<script>
$(document).ready(function(){
$("#goodslist").on("blur", ".desc .salePrice", function(){
var oldgood = $(this).parents(".good-item");
var oldindex = oldgood.index();
$(this).prevAll(".hiddenInput").text($(this).val());
var newgood = $(this).parents(".good-item");
$('#goodslist').jplist({
command: 'del'
,commandData: {$items: $(oldgood)}
});
$('#goodslist').jplist({
command: 'add'
,commandData: {$item: $(newgood)
,index: oldindex}
});
});
});
</script>
After i add new item , can table not sort it?
For example, if I enter a word "12" in filter box ,but this "12" in inputBox`s value.
How can i search this?
Thanks in advance,
WMK@