28-05-21 09:44 AM
Hello,
There is a web page that fires an event when user select the pull-down menu(combo box).
e.q.
<body>
<select>
<option>apple</option>
<option>orange</option>
<option>banana</option>
</select>
<script>
$('select').change(function() {
var text = $('option:selected').text();
console.log( text );
});
</script>
</body>
If I select this pull-down menu with "Select Item" , the event doesn't fire.
So I thought that I could fire the event by using the "Invoke JavaScript Function", but I don't know how to use.
Can someone please tell me how to use "Invoke JavaScript Function"?
Or is there other more appropriate technique?
Thanks in advance.
28-05-21 02:14 PM
31-05-21 04:59 AM