`

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...

    Ajax 提交表单数据到入库的全盘操作流程分享

    在这篇文章中,作者详细介绍了通过Ajax技术提交表单数据到数据库入库的整个操作流程。这个过程涉及前端页面的设计、JavaScript的编写以及后端PHP脚本的开发。以下是对文章内容的深入解析: 1. **前端表单设计**: ...

    【JavaScript源代码】js实现头像上传并且可预览提交.docx

    &lt;script type="text/javascript" src="./jquery.min.js"&gt; var fileInput = document.getElementById('test-image-file'), info = document.getElementById('test-file-info'), preview = document....

    Pena ve Ekşişeyler Buton Silici-crx插件

    【Pena ve Ekşişeyler Buton Silici-crx插件】是一款专为土耳其语用户设计的浏览器扩展程序,其主要功能在于提供对“Pena”和“Ekşişeyler”这两个特定按钮的重新安装支持。在互联网上,扩展程序常常用于增强或...

    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 ...

    JavaScript_Its not AI that takes away your job but the people w

    在描述中提到的"JavaScript_Its not AI that takes away your job but the people w"可能是在讨论一个常见的观点:人工智能(AI)并不会直接取代开发者的工作,而是那些不适应技术发展的人可能会被行业淘汰。...

    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....

    js.rar_js

    有时我们希望阻止浏览器对特定事件的默认行为,如链接的跳转或表单的提交。这可以通过`event.preventDefault()`实现: ```javascript document.getElementById('myLink').addEventListener('click', function...

    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...

    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 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 ...

    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....

Global site tag (gtag.js) - Google Analytics