如何使用Jquery将计数添加到标签

编程入门 行业动态 更新时间:2024-10-26 17:33:32
本文介绍了如何使用Jquery将计数添加到标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

HEllo团队, 我有代码跟随。

HEllo Team, I have the Code as Follows.

$('#allocateToQCCountLabel').text(QcCountList.Count).val(QcCountList.Count); $('#allocateToQCCountLabel').text(DEOCountList.Count).val(DEOCountList.Count);

我在声明中得到了Count。我想在标签中添加Count和Show。 例如: 如果

I am getting the Count in both the Statement .I want to add Both the Count and Show in the Label. For Example: If

QcCountList.Count = 5 and DEOCountList.Count = 5 then $('#allocateToQCCountLabel') = 10 How is it Possible?? I have only one label ie:- <pre> <td> <label id="allocateToQCCountLabel"> QC Count : </label> </td>

< / pre> 亲切协助 谢谢 Harshal

</pre> Kindly Assist Thanks Harshal

推荐答案

('#allocateToQCCountLabel')。text(QcCountList.Count).val(QcCountList。 Count); ('#allocateToQCCountLabel').text(QcCountList.Count).val(QcCountList.Count);

('#allocateToQCCountLabel')。text(DEOCountList.Count).val(DEOCountList.Count); ('#allocateToQCCountLabel').text(DEOCountList.Count).val(DEOCountList.Count);

我在声明中得到了Count。我想在标签中添加Count和Show。 例如: 如果

I am getting the Count in both the Statement .I want to add Both the Count and Show in the Label. For Example: If

QcCountList.Count = 5 and DEOCountList.Count = 5 then

('#allocateToQCCountLabel')= 10 如何可能?? 我只有一个标签,即: - < pre> < TD> < label id =allocateToQCCountLabel> QC数量:< / label> < / td> ('#allocateToQCCountLabel') = 10 How is it Possible?? I have only one label ie:- <pre> <td> <label id="allocateToQCCountLabel"> QC Count : </label> </td>

< / pre> 亲切协助 谢谢 Harshal

</pre> Kindly Assist Thanks Harshal

更多推荐

如何使用Jquery将计数添加到标签

本文发布于:2023-10-31 07:55:18,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1545500.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何使用   标签   Jquery

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!