Skip to content

Tag: jquery

Bootstrap 4 input field in popover

The problem is described in title. I have a Bootstrap 4 modal and one popover with input field with buttons. In IE 11 everything is ok, but in Firefox input loses focus. Popover: Popover html: https://i.stack.imgur.com/rTe2q.png Can anyone tell what is the reason for this, and how to solve this problem? UPD: …

Show text on a radio button selection

I have created a radio button which says “no” and “yes”. By default, nothing is selected. So what I’m looking to do here is, if someone select no, nothing happens, but if someone select “Yes” It should print a text below saying hello world. Can someone help? Answer Yo…

Compare and Filter Object Array in javascript

How to determine the cheapest and fastest rate and get the value in single object. cheapest is determined by using netfee having least value fastest is determined by using speed having less days best is determined by using amount having highest value I got stuck and let know is any alternative solution. Answe…

How to write this window.history.go(-historyCount) correct

In a piece of code that I am writing, I need the user to go back in its history depending on the number of products there are in a shopping cart. So I wrote this code: But as I expected this part is written wrong. window.history.go(-historyCount); I don’t know the naming so it is really difficult for me…

Calculation in jquery

Trying to get Break Even Point (BEP) and selling value using jquery. Now by running the above code, I entered 1 in the input, so the result (BEP) should be 0, but it gives NaN Answer Because your answer returns with e so it shows NaN. Try: This will give you the result 0.00000000. If you need a result as