Answer the question
In order to leave comments, you need to log in
Can't change language. Why href doesn't work with dropdown?
<li class="nav-item dropdown">
<a id="settingsDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="nav-link font-size-25 cursor-pointer notification-count">
<i class="fas fa-cogs"></i>
</a>
<div aria-labelledby="settingsDropdownMenuLink" class="dropdown-menu dropdown-menu-right show">
<a href="/en/search-configurations" class="dropdown-item">
<i class="fas fa-sliders-h"></i> Search configurations
</a>
<div class="dropdown-item cursor-pointer dropleft" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<i class="fas fa-language"></i> Language <span class="float-right"><i class="fas fa-chevron-right"></i></span>
<div class="dropdown-menu dropdown-menu-language left-0 w-100 h-100 show">
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="/en/?return_url=http://goodspaper.localhost/en/profile&language=en">
<i class="flag-icon flag-icon-us"></i>English
</a>
<a class="dropdown-item" href="/en/?return_url=http://goodspaper.localhost/en/profile&language=ru">
<i class="flag-icon flag-icon-ru"></i>Русский
</a>
<a class="dropdown-item" href="/en/?return_url=http://goodspaper.localhost/en/profile&language=am">
<i class="flag-icon flag-icon-am"></i>Հայերեն
</a>
</div>
</div>
<div class="dropdown-divider"></div>
<a href="/en/logout" class="dropdown-item">
<i class="fas fa-sign-out-alt"></i> Sign out
</a>
</div>
</li>
Answer the question
In order to leave comments, you need to log in
Well, the initial level of js is enough here.
1) you just need to save the data from input to a variable. and then write them in another block
2) and make a variable for the sum of all previous variables
something like:
var inputVal = parseInt( $('input').val() );
$('li').text(inputVal);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question