0

I want to add a element to a Table via java script where the cells are varibales. For this i wrote below code:

$("#AppendAnlagen").parent().append("<tr><td><asp:Label runat='server' text="+args[0]+"/></td></tr>");

on the Page i see +args[0]+ and not the value.

2
  • 1
    On text attribute you have forgotten simple quotes. Replace text="+args[0]+" by text='"+args[0]+"' Commented Jul 16, 2015 at 10:32
  • I have posted it as answer. Commented Jul 16, 2015 at 10:36

1 Answer 1

2

On text attribute you have forgotten simple quotes. Replace text="+args[0]+" by text='"+args[0]+"'

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.