title: Uncaught TypeError: Cannot read property 'top' of undefined while trying to click send button
body: <p>I’ve tried to search for solutions but could not find any that suited my code.</p>
  
  <p>I have many different categories on my website. While trying to add new ad post <a href="https://yala.xyz/add/" rel="nofollow noreferrer">here is the link</a>.</p>
  
  <pre><code>    form.find('.info-tooltip-container').addClass('hidden');
  
      var firstErrorMessageTop = form.find('.error-tooltip-container, .main-form-error').first().offset().top;
  
      if (!form.hasClass('ajax-form-no-scrolling')) {
        $(window).scrollTop(firstErrorMessageTop - 10);
      }
  
    }
  
    if (response.status == 'success') {
      if (callback == 'addCallBack') {
        window[callback](response.aid, response.step);
      }
      else if (callback == 'editCallBack') {
        window[callback](response.aid);
      }
    }
  });
  </code></pre>
  
  <p>All other categories work fine, except <code>Category: Job » IT / telecom / computers</code>. When I try to send I get an error:</p>
  
  <pre class="lang-none prettyprint-override"><code>Uncaught TypeError: Cannot read property 'top' of undefined
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/bLivu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bLivu.png" alt="Google chrome console log"></a></p>
  
  <p>Can someone tell me what’s wrong?</p>