Is it possible use *ngIf with jQuery?

I have make two select Box.
Using ngif, jquery does not work. How can it work?

this is my code

  1. html
<div *ngIf="game=='nintendo switch' || game=='Playstation Pro'">
     <select id="peripheral" class='peribox' style="margin-top:5px; border: solid 1px black"><option id="p" value="no">no</option>  
        <option id="p" value="{{p.name}}" *ngFor="let p of peripheral">{{p.name}}</option>
     </select>
  1. ts
 $(document).ready(() => {
          $('#peripheral').change((m) => {
            console.log(m.target.value)
          });
    })

Can I used *ngIf with jQuery?
help me ;(

Dont use angular and jquery, it’s bad practice.

1 Like