Here is what I did..
while some task was assigned to me..
<input type=\"" + (this.applymobilelookandfeel ? "number" : "text") + "\" >
The this.applymobilelookandfeel is conditional statement using ternary(? :) operator.
Number will be if condition is true,else text if condition fails.
Any doubts Please do comment.will be glad to reply back.....
while some task was assigned to me..
<input type=\"" + (this.applymobilelookandfeel ? "number" : "text") + "\" >
The this.applymobilelookandfeel is conditional statement using ternary(? :) operator.
Number will be if condition is true,else text if condition fails.
Any doubts Please do comment.will be glad to reply back.....
No comments:
Post a Comment