`

js buton 提交表单

BBS 
阅读更多
function tijiao(abc){
          document.form1.action="/bbs/admin/topic.do?method=piLiang&state="+abc;
          document.form1.submit();
        }



<form name="form1" method="post" >
            <input type="button"   value="批量设置为普通" onclick=tijiao(1) > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        <input type="button"   value="批量设置为置顶" onclick=tijiao(2)>

                   </form>
分享到:
评论

相关推荐

    巧用js提交表单轻松解决一个页面有多个提交按钮

    代码如下: ”javascript” name=”code”&gt;function check(txt){ $j(“form”).submit(function(){ if($txt==”提交”){ this.action=”doAddMessage.action?button=提交”; this.submit(); }else{ this.action=”...

    Web表单提交之disabled问题js解决方法

    本文实例讲述了Web表单提交之disabled问题js解决方法。分享给大家供大家参考。具体分析如下: 例如,有如下表单 代码如下:&lt;form id=”inputForm” action=”shorttermrental.action” method=”post”&gt;  &lt...

    Beginning Node.js

    From this book you will learn how to write maintainable server-side JavaScript using Node.js, how to test your code and deploy it on the internet. Table of Contents Chapter 1: Setting up for Node.js...

    Learn JavaScript with p5.js_Coding for Visual Learners-Apress(2018).pdf

    using JavaScript and p5.js and secondarily in creating visuals. The main focus is to teach you how to program so that you can choose to pursue whatever field that you would like with your newly ...

    Hands On Microservices with Node.js

    Microservices enable us to develop software in small pieces that work together but can be developed separately; this is one reason why enterprises have started embracing them. For the past few years, ...

    JavaScript Security(PACKT,2014)

    This book starts off with an introduction to JavaScript security and gives you an overview of the basic functions JavaScript can perform on the Web, both on the client side and the server side....

    JavaScript.Object.Programming.148421

    Most important, basing inheritance on JavaScript's prototypal chain is possible, but is not the best choice for prototypal inheritance or classical inheritance. What You'll Learn What are objects, ...

    Learning.Underscore.js.178439381

    Chapter 5: Using Underscore.js in the Browser, on the Server, and with the Database Chapter 6: Related Underscore.js Libraries and ECMAScript Standards Chapter 7: Underscore.js Build Automation and ...

    Building Scalable Apps with Redis and Node.js(PACKT,2014)

    Node.js is a JavaScript runtime-based, scalable platform used to develop web applications and network programs on the server side. It allows web designers to access the backend of their projects while...

    Beginning.Amazon.Web.Services.with.Node.js.1484206541

    Hosting a Node.js application in a production environment usually means turning to PaaS hosting, but this approach brings problems. Deploying Node.js directly to AWS solves the problems you encounter...

    Beginning JavaScript with DOM Scripting and Ajax: Second Editon

    As well as focusing on client-side JavaScript, you will also learn how to work with the Browser Object Model, the Document Object Model (DOM), how to use XML and JSON as well as communicate with ...

    JavaScript The Definitive Guide 6th Edition.pdf

    I wrote it for readers with at least some prior programming experience who want to learn JavaScript and also for programmers who already use JavaScript but want to take their understanding to a new ...

    textures, Textures.js 是一个用于创建SVG模式的JavaScript库.zip

    textures, Textures.js 是一个用于创建SVG模式的JavaScript库 textures.jsTextures.js 是一个用于创建SVG模式的javascript库。 它是以英镑为代价的,它是为数据可视化而设计的。阅读更多关于 ...

    React.js Essentials [PDF EPUB Mobi Code]

    Building web applications with maintainable and performant user interfaces is a challenge that many have faced for more than a decade, but no one has risen to this challenge quite like React.js....

    Getting to Know Vue.js

    Getting started with a new Single Page Application (SPA) JavaScript framework can be an overwhelming task, but Vue.js makes this daunting task simple and easy to learn, allowing you to start ...

    Getting to Know Vue js

    Getting started with a new Single Page Application (SPA) JavaScript framework can be an overwhelming task, but Vue.js makes this daunting task simple and easy to learn, allowing you to start ...

    Beginning JavaScript with DOM Scripting and Ajax (pdf + ePub)

    JavaScript is one of the most important technologies on the web. It provides the means to add dynamic functionality to your web pages and serves as the backbone of Ajax-style web development. ...

    Pro JavaScript Design Patterns

    But there is more power waiting to be unlocked--JavaScript is capable of full object-oriented capabilities, and by applying OOP principles, best practices, and design patterns to your code, you can ...

    functional javascript

    While some web developers dismiss JavaScript as a flawed language, this succinct book shows you how to make the best of it by practicing a functional style of JavaScript programming. Written by ...

Global site tag (gtag.js) - Google Analytics