Jquery Width / Height Calculator based on aspect ratio? -
I have a small form with some text boxes on it and in the end there is a button that is with a specified aspect The ratio (in the hidden text box) enables the user to type values in the width box, and when the user changes the value, the height text box will also change .. Also, when you type in height box the width will change . I do not want anyone to do this to me, but I'll need some help which to run to install jquery functions when I change the text into a lateral text box.
Any help, guidance will be great .. Thank you very much
Chris
Welcome to Stakeoverflow.
You can do something like this:
$ ('# widthboxId'). FocusAut (function () (var height = $ (this) based calculation '#hiddenRatioId' based on .val () // $ $ ('# heightBoxId'). Val (height);});
You can reverse with the height box.
Comments
Post a Comment