I have make two select Box.
Using ngif, jquery does not work. How can it work?
this is my code
- 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>
- ts
$(document).ready(() => {
$('#peripheral').change((m) => {
console.log(m.target.value)
});
})
Can I used *ngIf with jQuery?
help me ;(