我们可以将html表传递给jquery函数 [英] can we pass html table to jquery function
本文介绍了我们可以将html表传递给jquery函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的aspx页面中有一个转发器控件,它会创建一个表。现在我的问题是,我可以将此表发送到jquery并通过jquery显示吗?
静态jquery就像
Hi,
i have one repeater control in my aspx page and it will creat a table. now my question is that can i send this table to jquery and disply throug the jquery ?
The static jquery is like
$(document).ready(function () {
$('.infotip').tooltipster({
content: $('<table><tr><td>Testing</td></tr><tr><td>no1</td></tr></table>'),
position: 'left',
theme: 'tooltipster-shadow'
});
但我想传递一个在我的转发器控件中创建的表,在c#
but i want to pass a table that are created in my repeater control in c#
推荐答案
(文档) .ready(function(){
(document).ready(function () {
('。infotip')。tooltipster({
content:
('.infotip').tooltipster({ content:
('< 表 > < tr > < td > 测试< / td > < / tr > < tr > < td > no1 < span class =code-keyword>< / td > < / tr > < / table > '),
位置:'左',
主题:'tooltipster-shadow'
});
('<table><tr><td>Testing</td></tr><tr><td>no1</td></tr></table>'), position: 'left', theme: 'tooltipster-shadow' });
但我想传递一个在c#
but i want to pass a table that are created in my repeater control in c#
这篇关于我们可以将html表传递给jquery函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文