如何使用Jquery将计数添加到标签 [英] How to add the count to label using Jquery
本文介绍了如何使用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将计数添加到标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文