I opened this topic to see if someone can support me in the following issue .
Today I am migrating to a new version of the system and I have to develop some forms. A function widely used to perform calculations and also validate information was complex fields : RegisteronsubmitFunction(...);
This feature helped me at the time of executing the submit button, perform some function and return false if not validate anything. stopping the form prosesing.
The problem is that in the new instance no longer uses buttons Input type, but the label <button>
Before it was as follows :
Reviewing the source code, the button was so
<input type="submit" name="button" id="button" value="Submit" />
and the code I entered was inserted into the body
But now the button is as follows:
< div class = "x -btn x -btn -blue -button -small x -box- item x -toolbar -item x -btn -default -toolbar -small x - noicon x -btn - noicon x -btn -default- noicon -small- toolbar "style = " border -width: 1px ; border-color : rgb (209 , 209, 209 ) important , display : none ; "id =" button- 1391 "> <em id="button-1391-btnWrap"> <button id="button-1391-btnEl" type="button" class="x-btn-center" hidefocus="true" role="button" AUTOCOMPLETE="off"> <span id="button-1391-btnInnerEl" class="x-btn-inner" style=""> Submit< / span > <span id="button-1391-btnIconEl" class="x-btn-icon "> < / span > < / button> < / em > < / div >
And when I try to use RegisteronsubmitFunction not work
An alternative method that comes to mind?