wip renaming plugins elements
This commit is contained in:
7
plugins/fipfcard_plugin/js/menu/example_menu.js
Normal file
7
plugins/fipfcard_plugin/js/menu/example_menu.js
Normal file
@@ -0,0 +1,7 @@
|
||||
const inputElement = document.getElementById('mytext');
|
||||
const sendButton = document.getElementById('mybutton');
|
||||
|
||||
sendButton.addEventListener('click', () => {
|
||||
const inputValue = inputElement.value;
|
||||
ajax_post(inputValue, 'get_data');
|
||||
});
|
||||
Reference in New Issue
Block a user