Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
129
rated 0 times [  136] [ 7]  / answers: 1 / hits: 18901  / 11 Years ago, tue, november 26, 2013, 12:00:00

i got error because am using placeholder attribute in struts tags....



<html:text property=name styleClass=form-control placeholder=some text/>



how can resolve the problem,pls help me.



Thanks in Advance.


More From » java

 Answers
56

Use jQuery attr like below:



<html:text property=name styleClass=form-control styleId=abc />


JavaScript code:



$(function() {
$(#abc).attr(placeholder, some text);
});

[#74064] Sunday, November 24, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
daijac

Total Points: 568
Total Questions: 120
Total Answers: 108

Location: Virgin Islands (U.S.)
Member since Fri, May 7, 2021
3 Years ago
;