Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Nikogit

Newbie
  
  • Posts

    1
  • Joined

  • Last visited

Nikogit's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Стоит Opencart 1.5.6 Внутри товара к textarea подключен скрипт "count.js" который подсчитывает кол-во слов counter = function() { var value = $('#bob').val(); if (value.length == 0) { $('#wordCount').html(o); return; } var wordCount = value.split(/\s+/) .filter(function(v){ return v.length>2 }) .length; $('#wordCount').html(wordCount); }; $(document).ready(function() { $('#count').click(counter); $('#bob').change(counter); $('#bob').keydown(counter); $('#bob').keypress(counter); $('#bob').keyup(counter); $('#bob').blur(counter); $('#bob').focus(counter); }); Хотелось бы менять цену в зависимости от output этого скрипта, допусти чтобы цена "price" стала допустим: price = price * wordcount; То есть чтобы цена менялась от кол-во слов в textbox'е Не мог бы кто-нибудь подсказать где и как это можно сделать. Знание php/js у меня на начальном уровне. Заранее спасибо
Guest
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.