Your button is submitting the form
use this script
<script>
jQuery(document).ready(function ($) {
$("#add-url").click(function(e){
e.preventDefault();
$( "#submit" ).before( "<br /><input id='url-field-1' name="urlfield[]" type="text"><br />" );
});
});
</script>
Related Posts:
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- Creating a WordPress admin page without a menu for a plugin
- Plugin development: how to create a form and get custom data?
- Master menu item for multiple plugins?
- wp_verify_nonce() why return false?
- Detecting when a custom taxonomy has been changed and display alert?
- Hide Theme options and Customize Admin menu
- Suggestions on Approach to New Plugin I’m Stuck On
- creating a plug in that would tap into save/update action of posts [closed]
- Why WP_Screeen doesn’t show all options with admin_body_class
- add_submenu_page returns null
- How do I add an options page at the bottom of the list?
- How to remove a CPT Menu from the Root Admin only
- Admin menu hilighting wrong item for CPT
- How to add submenu to WordPress plugin in the same Directory of main Plugin?
- How can I pass value to function in add_menu_page?
- Submitting form to admin-post.php WordPress
- Does a plugin’s “main” file need to be named the same as the folder containing it?
- Symlinked plugin directory doesn’t appear in Admin
- How do I unlock a post programmatically?
- Customizing subject in comment notification e-mails
- enqueue script only if it is not already enqueue
- How can I limit functionality in one version of a plugin?
- Plugin child folder?
- merging an array to an existing array using add_filter
- Is it possible to set up multistore in Woocommerce? [closed]
- How use %like% in sql statement wordpress
- Can I use a form in a dashboard widget?
- Retrieving plugin options value saved through setting
- How to ‘clone’ a wp plugin to make small changes
- MITM risk of not sanitizing?
- How to slice an array using posts_per_page? [closed]
- Simple ajax call not working in wordpress plugin
- How to save post change url youtube link?
- __callStatic method handler passed to add_action causes bug in PHP
- New databes tables with – WooCommerce – for developers [closed]
- Plugin-generated pages use Not Found or Pages Archive templates?
- 306 MB of wp_options occupied by WordPress SEO Plugin, is that normal? [closed]
- Perform internal redirect in WordPress?
- How to prevent plugins from loading jQuery
- Inject HTML meta tag inside wordpress tag using add_shortcode
- WordPress Admin Menu defining function is seperate file
- Can plugin2 uninstall plugin1 at the very beginning of plugin2’s installation?
- Automatically download, install and activate plugins that my plugin depends, how?
- How to create WordPress custom end point with multiple parameters?
- How to redirect to same page after form submission
- plugin dev – minimum base css specificity?
- I changed font of wordpress dashboard but it is slow!
- WordPress SVN UTF-8 issue
- Creating a functionality plugin to edit seriously simple podcasting
- Plugin temporary files and files to download via FTP
- Asynchronous request in wordpress
- How to add credit card validation check to wordpress [closed]
- Displaying data from another database
- Every time I de-activate a custom plugin, the site encounters a critical error
- How do you add a settings page to another menu?
- Next Previous Post in wordpress with previous / next link with title?
- How to use existing hook in twentytwelve to all theme of wordpress?
- Apply html elements in php statement
- How Can i import plugin option?
- How to Get Category Name When Export Products
- Remove List Bullets
- How to override any plugin file in the child theme
- How to set plugin auto-update Enabled by default?
- Custom plugin activation error
- How to capture hidden values with Gravity Forms
- How to translate to spanish wordpress hardcoded content/files?
- How do I stop plugins and themes from getting updated in a new plugin?
- How come W3TC is allowed to host premium code in the WordPress repo?
- Multiple image selection custom widget
- How to Create a Learning Management Plugin in WordPress to Manage Courses [LMS]
- Passing function into add_action always returns the first argument
- Paid Membership Pro displaying a user name in PHP
- Make another copy of a plugin and install it
- Store admin page into variable
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- WP Plugin CSS not being applied to page
- Overwriting Plugin’s Ajax callback function from theme
- Creating Nested custom fields
- plugin not hooking to my custom hook
- Populate select option with JSON file
- Enahanced search for edit.php and custom post type
- Unable to sync woocommerce variations
- Can’t find variable is_single in my jQuery plugin
- WordPress Cron function is not working
- How to Add Jquery FullCalendar in wp plugin in admin
- Plugin hook breaks new WP 4.0 media library grid view?
- How to get site homepage from plugin?
- Unable to show 4 products in a row
- Is an Office a custom post type [closed]
- WordPress check box unchecked on null value ternary operator [plugin development]
- How to add image for custom taxonomy
- WordPress Hooks : Where to place callbacks that repetitively yield the same effect?
- wordpress Ajax success doesn’t return the value
- How do I set register_meta for a specific CPT?
- How to Enfroce Domain Licensing Limits? [closed]
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- Update Content for a Custom Block Toolbar Button
- admin_enqueue_scripts using hook_suffix vs GET page
- WordPress Throwing Deprecated Errors on its own Files