Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* js */
- $(document).ready(function(){
- function test(){
- var f9 = new LiveValidation('f9');
- f9.add( Validate.Numericality, { minimum: 2000, maximum: 2003, onlyInteger: true } );
- var f10 = new LiveValidation('f10');
- f10.add( Validate.Numericality, { minimum: 3000, maximum: 3003, onlyInteger: true } );
- if (document.GetElementById['f9'].value > '2000')
- {document.GetElementById['komfort'].disabled = true;}
- else {document.GetElementById['komfort'].disabled = false;}
- };
- $("input").live("onblur", function() { test();})});
- /*html*/
- <input type="text" id="f9"><br />
- <input type="text" id="f10"><br /> <input type="button" id="komfort" name="komfort" value="komfort"><br /><input type="button" value="industri"><br /><input type="button" value="basis">
Advertisement
Add Comment
Please, Sign In to add comment