L
L
Lavrov952020-12-01 20:22:38
Bootstrap
Lavrov95, 2020-12-01 20:22:38

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&amp;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&amp;language=ru">
                    <i class="flag-icon flag-icon-ru"></i>Русский
                </a>
                <a class="dropdown-item" href="/en/?return_url=http://goodspaper.localhost/en/profile&amp;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

2 answer(s)
I
iBird Rose, 2016-11-11
@iiiBird

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);

in general, the whole calculator is made according to the method - take data from one block and write to another

A
Andrey B., 2016-11-11
@andykov

Dig towards mathematics)))
Here are simple calculations and conditions
code here cleanbros.ru/web/javascripts/calculate.js
? ...
Explore

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question