Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

make form submit on new tab using jquery

<form target="_blank">
    <a href="#">Submit</a>
</form>

<script>
    $('a').click(function () {
        // do something you want ...

        $('form').submit();
    });
</script>
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to use a specific node version for inside a folder 
Javascript :: javaScript setSeconds() Method 
Javascript :: react bootstrap form select 
Javascript :: js join 
Javascript :: add array to array javascript 
Javascript :: javascript get specific timezone 
Javascript :: mysql remove quote on json extract 
Javascript :: javascript onkeydown 
Javascript :: check upload img extension jquery 
Javascript :: javascript extract date from string 
Javascript :: javascript tofixed no trailing zeros 
Javascript :: react uselazyquery and usequery 
Javascript :: convert currency to string javascript 
Javascript :: find by array of ids mongoose 
Javascript :: error metro bundler process exited with code 1 react native 
Javascript :: remove hostname from url javascript 
Javascript :: javascript fibonacci sequence recursion 
Javascript :: vue call method after render 
Javascript :: js hexadecimal 
Javascript :: getdisplaymedia screenshot 
Javascript :: tailwind config for nextjs 
Javascript :: normalize in javascript 
Javascript :: regular expression characters 
Javascript :: how to filter json array in javascript 
Javascript :: promise.race 
Javascript :: detect click outside react component 
Javascript :: log odd numbers js 
Javascript :: react webpack.config.js example 
Javascript :: Material-ui camera icon 
Javascript :: react promises 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =