Posts by Felipe • 31 points
2 posts
-
1
votes2
answers89
viewsA: Dropdown and Autocomplete
You can use the event onchange() to perform a function that filters the list of technicians according to the selected supervisor. The event onchange() calls the function alterado() passing by this…
-
1
votes2
answers59
viewsA: Create expressions in strings
You can use the function val(). This function evaluates javascript code stored in string. In your case: const str = 'if (1 + 1 === 2) {alert(\'um dois\');}'; eval(str);…