TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rewant Choudhary
NA
441
111.3k
string Problem
Nov 6 2012 12:42 AM
string attr = string.Empty;
for (int i = 1; i <= dtattr.Rows.Count - 1; i++)
{
attr += "<button id='add_item_" + i + "' type='button' rel=" + dtattr.Rows[i]["AttributeDataType"].ToString() + " onclick='add_item($(this).attr("
+ i +
"), 1);'>Add Item</button>
}
output showing
<button onclick="add_item($(this).attr(1), 1);" list="" rel="Drop" type="button" id="add_item_1">Add Item</button>
i want this
<button onclick="add_item($(this).attr('1'), 1);" list="" rel="Drop" type="button" id="add_item_1">Add Item</button>
Thanks in Advance.
Reply
Answers (
1
)
Get Data from database press f7 key
NHibernate Projections