Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="quantityHoleForPercentage">
- <form:input path="quantity11Profit" id="quantity11Profit" cssClass="smaller" />
- </div>
- <div id="quantityHoleForPercentage">
- <form:input path="quantity11Price" id="quantity11Price" cssClass="smaller" />
- </div>
- $("#quantityHoleForPercentage input").change(function(){
- var needless=$(this).attr('id');
- var willWriteToPriceInput= $(this).val();
- var priceInput=$(this).next();
- priceInput.val(willWriteToPriceInput);
- });
- $("#quantityHoleForPercentage input[id$=Profit]").change(function(){
- var willWriteToPriceInput= $(this).val();
- var priceInput = $(this).parent().next()
- priceInput.val(willWriteToPriceInput);
- });
Add Comment
Please, Sign In to add comment