javascript - How to add new attribute to Struts 1 <s:form>? -


this document zurb abide validation tool: http://foundation.zurb.com/docs/components/abide.html#setting-up-validation

i use struts 1 form, , try this:

<s:form styleid="frmaddestate" action="${addestateprofile}" data-abide>     // input fields... </s:form> 

but not working. please me put "data-abide" form tag. (i think revise file *.tld - tag lib definition).

you can use javascript add attributes form when has been loaded.

document.getelementbyid("frmaddestate").onload = function() {myfunction()};  function myfunction() {   var att = document.createattribute("data-abide");   document.getelementbyid("frmaddestate").setattributenode(att); } 

Comments

Popular posts from this blog

java - Solr query version issue: Invalid version or the data in not in 'javabin' format -

Hard vs. Soft Water: What's The Difference?

The Ten Most Livable Cities In The World