i set my own html code inside a custom element this html code have many input and that input has javscript event like onchange or onkeypress but something happens when i save the form because the name of the event is changed putting - between the word "on" and the name of the event (on-change). WHY???
is the first time,this happens to my i used before and work fine.
this is my html that is inside a custom element:
<tr><td align="center">2</td><td><input type="text" name="TeamPrice2" id="TeamPrice2" value="0" onkeypress="return isNumberKey(event);" onchange="CalculateMLBParlay(this.form)"></td></tr>
and this is like left after save
<tr><td align="center">2</td><td><input type="text" name="TeamPrice2" id="TeamPrice2" value="0" on-keypress="return isNumberKey(event);" on-change="CalculateMLBParlay(this.form)"></td></tr>
is the first time,this happens to my i used before and work fine.
this is my html that is inside a custom element:
<tr><td align="center">2</td><td><input type="text" name="TeamPrice2" id="TeamPrice2" value="0" onkeypress="return isNumberKey(event);" onchange="CalculateMLBParlay(this.form)"></td></tr>
and this is like left after save
<tr><td align="center">2</td><td><input type="text" name="TeamPrice2" id="TeamPrice2" value="0" on-keypress="return isNumberKey(event);" on-change="CalculateMLBParlay(this.form)"></td></tr>
Hi mervinmujica,
I've no idea, I just tested and nothing changes on my site when I save your code in a Custom Element element. I haven't seen this reported by anyone else either.
Bob
PS It may be easier to separate out the JavaScript into a Load JS action.
I've no idea, I just tested and nothing changes on my site when I save your code in a Custom Element element. I haven't seen this reported by anyone else either.
Bob
PS It may be easier to separate out the JavaScript into a Load JS action.
thanks GreyHead for answer so quick .
I don't know what this happen but i resolve attached the events to the input with jquery so will continue being a mystery
thanks for your concern.🙂
I don't know what this happen but i resolve attached the events to the input with jquery so will continue being a mystery
thanks for your concern.🙂
This topic is locked and no more replies can be posted.
