Jump to content
  • 0

cms - oninput, output


arkadiusz

Question

Proszę o pomoc, podpowiedź Jak zmusić np. CMS okienko edytorskie, żeby nie "kasowało" instrukcji oninput i output. 

Okienko edytora CMS przy przechodzeniu z "html->widok zwykły" kasuje ONINPUT na INPUT, OUTPUT znika mimo zmian wg http://mypresta.eu/en/art/developer/prestashop-product-page-full-rich-editor.html#validate_class_change

Próbuję zrobić Formularz z obliczeniami i już mi ręce opadły żeby wykorzystać oninput.

 

przykład 1
<form onsubmit = " return false " oninput = " o . value = parseInt ( a . value ) + parseInt ( b . value ) " >
<input name = "a" type = "number" step = "any" > +
<input name = "b" type = "number" step = "any" > =
<output name = "o" ></output>
</form>

zamienia na
<form onsubmit="return false"> <input type="number" name="a" /> + <input type="number" name="b" /> = </ form>

przykład 2
<form oninput="x.value=parseInt(a.value)+parseInt(b.value)"> 0
<input type="range" id="a" value="50"> 100 +
<input type = " numer "id =" b "value =" 50 "> =
<Output name="x" for="ab"> </ wyjścia>
</ form>

zamienia na
<form> 0 <input id="a" type="range" value="50" /> 100 + <input id="b" type="number" value="50" /> = </ form>

Edited by arkadiusz (see edit history)
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...