You need to target the value of the element rather than the content.
var kasUser = document.getElementById("kasUserName").value;
var kasPas = document.getElementById("kasPsw").value;
You can check the content of your inputs by adding alert(kasUserName);
and alert(kasPas);
Related Posts:
- Redirect to another page using contact form 7? [closed]
- Modifying a JS file with data from plugin settings
- How to find out if option exists but is empty?
- How do I only load a plugin js on it’s settings pages?
- Custom plugin settings: clicking “save changes” does not display success message
- AJAX Call Via Vanilla JavaScript In WordPress Plugin Development
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- How to fetch serialized data from wordpress options
- How to Reload the Dashboard After Clicking Update in Quick-Edit?
- Ajax call doesn’t work in frontend but it’s working in backend (when I’m logged in)
- Dequeue / Deregister script and replace it with a new plugin
- Insert code after tag without using functions.php?
- How do I use WordPress PHP functions in my Javascript code?
- Get all options saved by another plugin
- Passing select control value to block
- How to create popup same as wordpress popup feature
- Has anyone used require.js for handling plugin scripts?
- Passing RichText attributes to function onChange
- How do I store information in a dynamic block in WordPress?
- add action wp_head not working
- Why is the Settings API is not saving my array of options
- Default Plugin Settings Not Writing to Database
- Update Option Error: Notice: Undefined index
- Serialize data for wp options
- How can I add an options page for my class based plugin?
- How to load plugin after page is loaded – pagespeed issues
- Get IDs of Images from Gallery Block in InnerBlocks of a Custom Gutenberg Block
- React JSX in WordPress Plugin Development
- Pulling data from custom plugin settings using PHP shortcode and Javascript
- Get plugin option in another PHP file
- Best approach to fetch data from wp options to js file or php file
- Updating the Drag-To-Share eXtended share URLs?
- Enqueue WordPress plugin scripts below all other JS
- How to add Internationalization in WordPress using Javascript/React?
- How to get specific setting by settings_fields()?
- Add Plugin options as subpage to Theme options page
- wp.media javascript issue with on select
- php page not found for plugin options menu
- add tabs in rdp-plugin/includes/settings.php and get settings saved
- How can I remove the WordPress-Version (?ver=5.x) from my plugin
- Delay JavaScript files from loading
- WordPress error: Options page Setting_ not found in the allowed options list
- Can I use register_settings and unregister_setting once the settings page has loaded?
- update_option_{$option} not showing old value
- How to prevent plugins from sniffing/stealing other plugins’ options?
- How to generate an all in one WordPress New content, plugin and theme update report on a website? [closed]
- get_option / wp_localize_script Not Working in OOP Plug In
- How to use custom Javascript code inside a plugin?
- how to request a script more than once in wordpress
- Need to add/remove group of options and display them as rows
- How to get values from network settings panel?
- How to make sure settings are not lost when plugin is updated?
- wp_options not returning value for logged out users?
- Set Button in PluginDocumentSettingPanel Content (WordPress Gutenberg)
- How to save Setting pages data to the database?
- Fixed: Console.log twice in the edit function
- Problem with MEMCACHE and Redis with wp_options
- Cannot run script properly with my custom plugin
- Add style to body based on url
- How to properly enqueue jQuery knob on WordPress without conflict?
- Problem with wordpress has_action() function
- Multiple image selection custom widget
- Create a form and have custom menu display based on user answers?
- AJAX update fails for public/non-admin users
- WordPress ajax error 400 bad request for sending data to remote site [duplicate]
- Plugin Options Page and Subpage
- How to save the option’s new values plus old value without overwrite old one
- How to use information from the database in the front-end?
- WP options plugin setting not saving the selected checkboxes
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Echo custom admin field into a is_single()
- Protect WordPress option value
- WordPress Boilerplate Plugin doesn’t see callback functions for add_settings_field and add_settings_section
- How do I add a textarea (multirow) option to my WordPress plugin?
- How to pass value from WordPress to Javascript
- Why is the WordPress update_option not working in this code?
- Javascript in plugin not working
- How to limit each front-end user to view just his own uploaded files on Amazon S3?
- How to create a new database table whenever user changes options
- Creating a user ‘add custom field’ section
- Create Array from data in the OPTIONS table
- Need to hide an element depending on date and post category
- Validating values using Settings API?
- Saving an array to get_options
- Ajax, jQuery and WordPress
- Plugin – including external javascript calling google maps
- Building a simple “settings” plugin to change textstrings on the home page
- get_option include in my adsense
- My first plugin doesn’t save the data in options
- Is it possible to run javascript on plugin deactivated?
- Ajax in Plugins: returns the whole page
- Load css classes after using ajax calls
- How to create post comparison in wordpress
- move setting data from wordpress api to codestar freamwork
- Vanilla javascript in custom gutenberg block not working
- How can I find plugins’ slug?
- How to remove duplicate sub-menu name for top level menu items in a plugin?
- nonces in custom oop plugin
- Wp die causing 500 Internal Server Error?
- How can I create a page as a draft from my plugin?