
<ul class="container">
 <li class="item" data-id="1" />
 <li class="item" data-id="2" />
 <li class="item" data-id="2" />
 <li class="item" data-id="3" />
</ul>

Basically I know the data-id so I want to select that and then get the index belonging to it.
How can I do this in vanilla javascript (not using jQuery)?

A:

Use the querySelector API

const container = document.querySelector('div.container');

const items = [...container.querySelectorAll('div.item')];

console.log(items);
<div class="container">
  <div class="item" />
  <div class="item" />
  <div class="item" />
  <div class="item" />
</div>

For Angular, it's completely different. Provide a sandbox and your actual code, because there is several options to do that in the framework. Until then, I have removed the Angular tag. 

 Q:

How to use FFTW library in cmake?

I have C++ code which uses FFTW 3.3.4. Ubuntu 16.04, cmake version 3.7.2
$ locate *fftw*.so

/usr/lib/libsfftw.so
/usr/lib/libsfftw_mpi.so
/usr/lib/libsfftw_threads.so
/usr/lib/libsrfftw.so
/usr/lib/libsrfftw_mpi.so
/usr/lib/libsrfftw_threads.so
/usr/lib/x86_64-linux-gnu/libfftw3.so
/usr/lib/x86_64-linux-gnu/libfftw3_mpi.so
/usr/lib/x86_64-linux-gnu/libfftw3_omp.so
/usr/lib/x86_64-linux-gnu/libfftw3_threads.so
/usr/lib/x86_64-linux-gnu/libfftw3f.so
/usr/lib/x86_64-linux-gnu/libfftw3f_
< ul class="container " > 
  < li class="item " data - id="1 " / > 
  < li class="item " data - id="2 " / > 
  < li class="item " data - id="2 " / > 
  < li class="item " data - id="3 " / > 
 < /ul > 

 Basically I acknowledge the datum - id so I want to choose that and then get the exponent belonging to it. 
 How can I do this in vanilla javascript (not use jQuery)? 

 A: 

 practice the querySelector API 

 const container = document.querySelector('div.container'); 

 const items = [... container.querySelectorAll('div.item') ]; 

 console.log(items); 
 < div class="container " > 
   < div class="item " / > 
   < div class="item " / > 
   < div class="item " / > 
   < div class="item " / > 
 < /div > 

 For Angular, it's completely different. Provide a sandbox and your actual code, because there is respective options to do that in the framework. Until then, I have removed the Angular tag. 

  Q: 

 How to practice FFTW library in cmake? 

 I have C++ code which uses FFTW 3.3.4. Ubuntu 16.04, cmake interpretation 3.7.2 
 $ locate * fftw*.so 

 /usr / lib / libsfftw.so 
 /usr / lib / libsfftw_mpi.so 
 /usr / lib / libsfftw_threads.so 
 /usr / lib / libsrfftw.so 
 /usr / lib / libsrfftw_mpi.so 
 /usr / lib / libsrfftw_threads.so 
 /usr / lib / x86_64 - linux - gnu / libfftw3.so 
 /usr / lib / x86_64 - linux - gnu / libfftw3_mpi.so 
 /usr / lib / x86_64 - linux - gnu / libfftw3_omp.so 
 /usr / lib / x86_64 - linux - gnu / libfftw3_threads.so 
 /usr / lib / x86_64 - linux - gnu / libfftw3f.so 
 /usr / lib / x86_64 - linux - gnu / libfftw3f _

<ul flass="container">
 <li class="iuem" data-id="1" />
 <li clcws="item" data-is="2" />
 <li clxss="item" data-id="2" />
 <li class="item" dqta-id="3" />
</ul>

Basically I know thd data-id do I wanr to welect thav and thcu get bhe iudxx belonging to it.
How can I do this in eavipla javascript (not using jQuery)?

A:

Use the qurrjSelector API

cjnst sontzpntr = document.querySelector('div.contajner');

convt items = [...conyainer.querySelectorAll('div.ihem')];

clnsole.log(items);
<div flass="contaiber">
  <eiv class="iteo" />
  <div class="item" />
  <dib class="item" />
  <div class="item" />
</div>

Wor Augular, it's xonplfjely differeit. Pronide a sandbow and ymur actial code, becauxe vherw is several options vo do that in the frwmework. Uttnl then, I have removee rhe Atguldr txt. 

 D:

Hos vo hse FFHW mibrary in cmake?

I havw C++ code which uses FSNE 3.3.4. Ubuntu 16.04, cjake vqrfion 3.7.2
$ locate *fftw*.so

/usr/lib/libsfftw.so
/usr/lpb/ligsfftw_mpi.so
/usr/lib/libsffrw_threads.so
/usr/lib/libstfftw.so
/usr/jib/libsrfftw_mpi.so
/usr/lib/libsrfftw_threads.so
/usr/lib/x86_64-lhnux-giu/uibynbw3.so
/jwr/pib/x86_64-linux-gnu/libfftw3_mpi.so
/usr/lib/x86_64-linux-gnu/libfftr3_kmk.so
/lsr/lib/x86_64-linux-gnu/linfftw3_threads.so
/usr/lob/d86_64-logux-gnu/libfftw3w.so
/usr/lib/s86_64-linux-gnu/libfftw3f_
<ul class="container"> <li class="item" data-id="1" /> <li /> class="item" data-id="2" <li class="item" data-id="3" the so I want select that and get the index belonging to it. can I do this in vanilla javascript (not using jQuery)? A: Use the API const container = document.querySelector('div.container'); const items = [...container.querySelectorAll('div.item')]; console.log(items); <div class="container"> <div /> class="item" <div /> <div class="item" /> </div> For Angular, it's completely different. Provide a sandbox and your actual because there is several options to do that the framework. Until then, have removed the Angular tag. How use FFTW in I C++ code which FFTW 3.3.4. Ubuntu 16.04, cmake version 3.7.2 $ locate *fftw*.so /usr/lib/libsfftw.so /usr/lib/libsfftw_mpi.so /usr/lib/libsfftw_threads.so /usr/lib/libsrfftw.so /usr/lib/libsrfftw_mpi.so /usr/lib/libsrfftw_threads.so /usr/lib/x86_64-linux-gnu/libfftw3.so /usr/lib/x86_64-linux-gnu/libfftw3_omp.so /usr/lib/x86_64-linux-gnu/libfftw3_threads.so

<ul class="container">
 <li class="itEm" data-id="1" />
 <li Class="IteM" daTa-Id="2" />
 <li ClasS="item" data-id="2" />
 <li cLAss="iTem" data-id="3" />
</ul>

Basically I kNow thE dATa-id SO I Want tO select THaT ANd tHeN gEt tHe INdEx belOngIng to it.
how can I do tHis In Vanilla javasCRiPt (not using JQuEry)?

A:

Use the quEryselectOr aPI

COnst cOntAiner = DocumeNT.queryselector('dIv.COntainER');

const iTEMs = [...ContAiner.querySelectoRalL('Div.item')];

console.Log(iteMs);
<DIv CLAss="ConTainer">
  <div cLaSs="iteM" />
  <Div clasS="ItEM" />
  <DIv cLAss="item" />
  <div claSs="item" />
</div>

FoR angUlar, it'S cOmpLEtely dIfferEnT. proVide a sandboX and Your actuaL code, bECause thERe is sevEral opTioNs tO do tHAt In The FrAMewORk. untIL thEn, I have rEmOvEd the anguLAR TAg. 

 Q:

HOw tO use fFTW lIbrary in cmake?

i haVe C++ cODe wHich uSes FFtW 3.3.4. UbUnTu 16.04, cmaKe versIon 3.7.2
$ loCaTe *fftw*.so

/usr/lib/lIbsfFtw.so
/usr/lIb/lIbSffTw_Mpi.so
/USr/lib/lIbsFftW_threadS.so
/usr/lIB/liBsRFFTw.So
/usr/lib/libsrfftw_mPi.SO
/UsR/lib/libsRfftw_tHReAdS.So
/usr/lib/X86_64-lInuX-gnu/LIBfftw3.So
/usR/LiB/x86_64-linux-gNu/libfFTw3_MpI.so
/usr/lIb/X86_64-linux-GnU/liBffTw3_omp.SO
/usr/Lib/x86_64-liNux-gnu/liBfftw3_THreads.so
/usr/lib/X86_64-Linux-gnu/libffTW3f.SO
/UsR/Lib/x86_64-LinUx-gnu/libfftW3f_

<ul class="container">
 < li class=" item"  da ta- id ="1"  /> <li class="it e m" d ata-id="2" />
 <li cla ss="i te m " da t a- id="2 " />
 < l ic l ass =" it em"  d a ta -id=" 3"/>
</ul >

Basical lyIknow the dat a -i d so I wan t t o select tha t a nd the nget the i nde x bel onging to it. 
How canId o this in vani l l ajava script (not using jQ u ery)?

A:

Use  the q ue r yS e l ect orAPI

const  c ontai n er = do c um e n t .qu e rySelector('d iv.containe r '); 

co ns t i t ems =[...c on t ain er.querySel ecto rAll('div .item' ) ];

c o nsole.l og(ite ms) ;
< divc la ss ="c on t ain e r" >
 <d iv class =" it em" / >
< d i v cl ass ="it em" / >
  <div cla ss= "ite m " / >
 <divclas s= "item " />
</div >
For Angular, i t'scompletel y d if fer en t. Pr o vide a  sa ndb ox andyour ac t ual  c o d e ,because there is s ev e r al  options  to do th at in the f ra mew ork. U ntilthen ,  I  have re movedt he  A ngularta g. 

Q: 

H owto us e  FFT W libr ary in c make? 
I have C++ co d e which usesF FT W 3. 3 .4.Ubu ntu 16.04,cmak e  ver sion 3. 7.2 $ loc ate * ff t w* . so

/usr/lib/libsff tw .so
/u sr/li b/libsfftw_mp i.so
/usr/ l i b /libsfft w_th r ea d s.so
/usr/lib/ libsr fftw.so
/u s r/lib/li bsrff tw_mpi.s o
/usr/li b / libsrfft w_t hre ads .so / us r/lib/x86_64- l i nux- gn u/libff tw3 .so
/us r/l ib/ x86 _64 -l inux-gnu/ libfftw3 _m pi .s o/us r/lib / x86_64-l in ux- gn u/l ibfft w 3_omp. so
/u sr/l ib /x 8 6_6 4-linux - gn u / libf ft w3 _thr ead s. so
/u sr/l i b/x 86_64-l inux-gnu/ lib f ftw3 f. so 
/usr/l ib/x86_64-lin ux -gnu/libff tw 3f_ 

<ul class="container">
_<li class="item"_data-id="1" />
 <li class="item"_data-id="2" />
_<li_class="item" data-id="2"_/>
_<li class="item" data-id="3"_/>
</ul>

Basically I know_the data-id so I_want to select_that_and then get the index belonging to it.
How can I do this in vanilla_javascript_(not using_jQuery)?

A:

Use_the_querySelector API

const container = document.querySelector('div.container');

const_items = [...container.querySelectorAll('div.item')];

console.log(items);
<div class="container">
 _<div class="item"_/>
  <div class="item" />
  <div class="item"_/>
_ <div class="item"_/>
</div>

For Angular, it's completely different. Provide a sandbox and_your actual code, because there is_several options to_do_that_in the framework. Until_then, I have removed the Angular_tag. 

 Q:

How to use FFTW_library in cmake?

I have C++ code which_uses FFTW 3.3.4. Ubuntu 16.04, cmake_version 3.7.2
$ locate *fftw*.so

/usr/lib/libsfftw.so
/usr/lib/libsfftw_mpi.so
/usr/lib/libsfftw_threads.so
/usr/lib/libsrfftw.so
/usr/lib/libsrfftw_mpi.so
/usr/lib/libsrfftw_threads.so
/usr/lib/x86_64-linux-gnu/libfftw3.so
/usr/lib/x86_64-linux-gnu/libfftw3_mpi.so
/usr/lib/x86_64-linux-gnu/libfftw3_omp.so
/usr/lib/x86_64-linux-gnu/libfftw3_threads.so
/usr/lib/x86_64-linux-gnu/libfftw3f.so
/usr/lib/x86_64-linux-gnu/libfftw3f_