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

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -