Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

JavaScript OnClick – Change Form Value

Posted on February 11, 2014December 23, 2016 By David Kittell
<input type="hidden" name="thingy" value="" />

<input type="submit" value="submit1" onclick="document.forms[0].elements['thingy'].value = 'submit1 clicked';return true;" />
<input type="submit" value="submit2" onclick="document.forms[0].elements['thingy'].value = 'submit2 clicked';return true;" />
Originally Posted on February 11, 2014
Last Updated on December 23, 2016
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code JavaScript

Post navigation

Previous post
Next post

Related Posts

Mac OSX Terminal – Wi-Fi & Ethernet Switch

Posted on April 9, 2018

Sometimes you need to turn off Wi-Fi and turn on Ethernet and vice-versa NOTE: Important to know what your configuration is. sudo ifconfig en6 up && sudo ifconfig en0 down sudo ifconfig en6 down && sudo ifconfig en0 up All information on this site is shared with the intention to…

Read More

NetSuite – SuiteScript 1.0 – Useful Functions

Posted on August 31, 2018

These first function snippets are from https://gist.github.com/W3BGUY // function to figure out the number of days in month. function getDaysInMonth(thisMonth,thisYear){ var monthArray=[31,28,31,30,31,30,31,31,30,31,30,31]; if(thisMonth!=2){return monthArray[thisMonth-1]}; if(thisYear%4!=0){return monthArray[1]}; if(thisYear%100==0 && thisYear%400!=0){return monthArray[1]}; return monthArray[1]+1; } // NetSuite usage example nlapiLogExecution(‘DEBUG’,getDaysInMonth(11,2016)) // function to add leading zeros on date parts. function zeroPad(num,len){ var…

Read More

Javascript – Digital Clock with Style

Posted on December 3, 2024

<!DOCTYPE html> <html> <head> <title>Digital Clock</title> <style> .content { max-width: 500px; margin: auto; } .clock { font-size: 24pt; font-family: Baskerville, "Palatino Linotype", Palatino, "Century Schoolbook L", "Times New Roman", "serif"; width: 180px; border: thick double #ff0004; margin: 15px; padding: 15px; } </style> </head> <body> <div id="content" class="content"> <div id="clock" class="clock"></div>…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes