skip to Main Content

return value unclicking html checkbox

I try to make a checkbox that should return true if I select it and false if I deselect it. <input type="checkbox" id="10101" name="10101" onchange="update_C('10101', 40)" value="true"> and then I accsess the value inside update_C with document.getElementById('10101').value However, this always…

VIEW QUESTION

Html – re-use regular expression on clientside for onkeyup event

For my xpages/jsf application I have setup for an xe:input control the following validation: <xp:this.validators> <xp:validateConstraint regex="${application.regex_email}" message="please follow the rules"> </xp:validateConstraint> <xp:validateRequired message="follow the rules"> </xp:validateRequired> </xp:this.validators> The regular expression I use: regex_email=^([w-]+(?:.[w-]+)*)@(acme.org|acme.com) (so I allow only email addresses…

VIEW QUESTION
Back To Top
Search