When you open a new window, span becomes not clickable. The code for opening a new window.

<a onclick="_open('http://test.ru',850,550);" href="javascript://">добавить в корзину</a> function _open( url, width, height ) { window.open( url, '', 'width=' + width + ',height=' + height + ',left=' + ((window.innerWidth - width)/2) + ',top=' + ((window.innerHeight - height)/2) ); } 

Span code to be clickable:

 <div class="number"> <span class="minus">-</span> <input type="text" value="1" size="5"/> <span class="plus">+</span> </div> <script type="text/javascript" > $(document).ready(function() { $('.minus').click(function () { var $input = $(this).parent().find('input'); var count = parseInt($input.val()) - 1; count = count < 1 ? 1 : count; $input.val(count); $input.change(); return false; }); $('.plus').click(function () { var $input = $(this).parent().find('input'); $input.val(parseInt($input.val()) + 1); $input.change(); return false; }); }); </script> 

With direct access to test.ru, everything is fine and when you click on the span, the values ​​in the input change, but when you open a new window, the spans are not clickable. What could be the problem?

    0