PC Ekspert Forum

PC Ekspert Forum (https://forum.pcekspert.com/index.php)
-   Web dizajn, programiranje i ostalo (https://forum.pcekspert.com/forumdisplay.php?f=39)
-   -   Vanilla js brojevi i array (https://forum.pcekspert.com/showthread.php?t=305638)

cdhr 17.11.2020. 21:37

Vanilla js brojevi i array
 
Malo zapeo sa logikom :lol2:

Imate 2 array sa brojevima
arr1 [1...80]
arr2[1...80]

Postoje 2 select boxa sa item arr1 i arr2

Primjer:
Ako select odabere 14 i drugi select odabere 20 u arr1 makni sve brojeve ispod 20 i 20.

To znači da u prvom selectu itemi idu od 21 pa nadalje, ako se u drugom selectu odabere 30, prvi select opet ide od 31...itd itd.
:fiju:

Vanilla js (vue.js / vuetify / firebase projekt neki kucam :P :) ofc :respekt:


Citiraj:

zaboravio na filtere.
this.ageNumbersMin = this.ageNumbersMin.filter(function (x) {
return x > that.endAge;
});


Sva vremena su GMT +2. Sada je 11:15.

Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 1999-2024 PC Ekspert - Sva prava pridržana ISSN 1334-2940
Ad Management by RedTyger