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="{{}}" *ngFor="let p of peripheral">{{}}</option>
  1. ts
 $(document).ready(() => {
          $('#peripheral').change((m) => {

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

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

1 Like