How can i combine this:
var vlakh2 = $(".header .text h2").height();
var vlakp = $(".header p:first").height();
var vlak = vlak2 + vlakp;
Thanks!!!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You seem to have a typo.
In your code, you declare
vlakh2but usevlak2.Try it like this…
Also, if the typo is not actually in your code, casting to a number may solve the issue. But it should work without needing to do this (an example for future use perhaps)