Artificial intelligent assistant

要素Aの数字より要素Bの数字が小さい場合に、要素Cに判定を出したい (`class="budget"`)(`class="cost"`)(`class="result"`) HTML <div> <div><span class="budget">100</span><span class="cost">80</span><span class="result"></span></div> <div><span class="budget">50</span><span class="cost">70</span><span class="result"></span></div> <div><span class="budget">30</span><span class="cost">50</span><span class="result"></span></div> </div> <script> var budget = $('.budget').text(); var cost = $('.cost').text(); if(budget < cost) { $('.result').text(''); } </script> 10080 5070 3050 10080 5070 3050




xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 8a36e4100a05112066898b8cb47d8d63