我如何将锚标记的值作为参数发送到webmethode? [英] how could I send anchor tag's value as a parameter to webmethode?
本文介绍了我如何将锚标记的值作为参数发送到webmethode?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<div class="col-md-3">
<p style="font-size:15px;">SHOP ALL </p>
<p class="para_style"> <a href=""> Customers Designs </a> </p>
<p class="para_style"> <a href=""> HOB Designs </a> </p>
<p class="para_style"> <a href=""> ALL Designs </a> </p>
<br/>
<p style="font-size:15px;">SHOP BY STYLE </p>
<p class="para_style"> <a href="">V Neck </a> </p>
<p class="para_style"> <a href=""> U Neck </a> </p>
<p class="para_style"> <a href=""> Square Neck </a> </p>
<p class="para_style"> <a href=""> Sweet Heart </a> </p>
<p class="para_style"> <a href=""> Boat Neck </a> </p>
<p class="para_style"> <a href=""> Hi-Neck </a> </p>
<p class="para_style"> <a href=""> Chinese Collar </a> </p>
<p class="para_style"> <a href=""> Spaghetti </a> </p>
<p class="para_style"> <a href=""> Crop Top</a> </p>
<p class="para_style"> <a href=""> Halter </a> </p>
<p class="para_style"> <a href=""> Sheer Yoke </a> </p>
</div>
我想发送uneck,vneck ....值作为webmethode的参数。
那么如何从jquery中的锚标记中获取它的值?并将其发送到webmethode?
I want to send uneck,vneck.... values as a parameter to webmethode.
so how to get it's value from anchor tag in jquery? and send it to webmethode?
推荐答案
请在此处阅读本文:
使用jQuery调用ASP.Net WebMethods [ ^ ]
您可以更改webmethod
Please go through this article here:
Calling ASP.Net WebMethods using jQuery[^]
You can change webmethod from
.webMethod({
' methodName':' GetDate',
' parameters':{
' client': 3
},
成功: function (value){
alert(value);
}
});
.webMethod({ 'methodName': 'GetDate', 'parameters': { 'client': 3 }, success: function (value) { alert(value); } });
to
to
.webMethod({
' methodName':' GetDate',
' parameters':{
' < span class =code-string> client':
.webMethod({ 'methodName': 'GetDate', 'parameters': { 'client':
这篇关于我如何将锚标记的值作为参数发送到webmethode?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文