如何在jquery弹出窗口中显示datalist项目详细信息 [英] how to show datalist item details in jquery popup window

查看:171
本文介绍了如何在jquery弹出窗口中显示datalist项目详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在jquery弹出窗口中显示datalist项目详细信息

解决方案

我找到了下面提到的代码。试试吧。



 if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
产品信息=(Product)e.Item.DataItem;
if(!string.IsNullOrEmpty(info.Name))
{
LinkBut​​ton hlnk =(LinkBut​​ton)e.Item.FindControl(buybutton2);

hlnk.Attributes.Add(productDescription,+ info.RegisteredProductId.ToString()
+ - + info.Name);

}}





 


< blockquote>(div#divDatalist .buylink)。click(function(e){
e.preventDefault();
var posy = e.pageY - (this.offsetTop - 10);
var _text =;
var currentObjId =(this.id);
_text =


(a#+ currentObjId).attr('productDescription ');

var partsArray = _text.split(' - ');


how to show datalist item details in jquery popup window

解决方案

I have found below mentioned code for that.Try it.

if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
Product info = (Product)e.Item.DataItem;
if (!string.IsNullOrEmpty(info.Name))
{
LinkButton hlnk = (LinkButton)e.Item.FindControl("buybutton2");

hlnk.Attributes.Add("productDescription",+info.RegisteredProductId.ToString()
+"-"+info.Name);

}}




("div#divDatalist .buylink").click(function (e) { e.preventDefault(); var posy = e.pageY - (this.offsetTop - 10); var _text = ""; var currentObjId = (this.id); _text =


("a#" + currentObjId).attr('productDescription'); var partsArray = _text.split('-');


这篇关于如何在jquery弹出窗口中显示datalist项目详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆