<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: javascript onchange</title>
		<link>https://legacy.forums.gravityhelp.com/topic/javascript-onchange</link>
		<description>Gravity Support Forums Topic: javascript onchange</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 12:19:37 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/javascript-onchange" rel="self" type="application/rss+xml" />

		<item>
			<title>twofus on "javascript onchange"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/javascript-onchange#post-14043</link>
			<pubDate>Tue, 07 Dec 2010 20:13:06 +0000</pubDate>
			<dc:creator>twofus</dc:creator>
			<guid isPermaLink="false">14043@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;for those wondering, here's a piece of code I used to make this work:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.pastie.org/1357423&#34; rel=&#34;nofollow&#34;&#62;http://www.pastie.org/1357423&#60;/a&#62;&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;

jQuery(document).ready(function() {
   var values = $(&#38;#39;#input_2_86,#input_2_129,#input_2_95,#input_2_96&#38;#39;).change(function() {
   var sum = 0;
   values.each(function() { // Step through each one
   var value = parseInt($(this).val(), 10); // Retrieve its numeric value
   sum += (isNaN(value) ? 0 : value); // Add to the total
   });
  $(&#38;#39;#input_2_88&#38;#39;).val(sum / 4); // And show the average
  });
});
&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "javascript onchange"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/javascript-onchange#post-13890</link>
			<pubDate>Sat, 04 Dec 2010 08:30:39 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">13890@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;what you want to do is use jQuery to bind to the field's onchange event.&#60;br /&#62;
Something like&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;jQuery(document).ready(function(){
   jQuery(&#38;#39;#input_2_95&#38;#39;).bind(&#38;#39;onchange&#38;#39;, function (){
      CalculateTotal(this.form);
   });
});&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>twofus on "javascript onchange"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/javascript-onchange#post-13880</link>
			<pubDate>Fri, 03 Dec 2010 22:43:25 +0000</pubDate>
			<dc:creator>twofus</dc:creator>
			<guid isPermaLink="false">13880@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'd like to be able to add data to the field input line so that this:&#60;/p&#62;
&#60;p&#62;&#38;lt;input name='input_95' id='input_2_95' type='text' value='' class='small' tabindex='37' /&#38;gt;&#60;/p&#62;
&#60;p&#62;becomes this:&#60;/p&#62;
&#60;p&#62;&#38;lt;input name='input_95' id='input_2_95' type='text' value='' class='small' tabindex='37' onChange=&#34;CalculateTotal(this.form)&#34; /&#38;gt;&#60;/p&#62;
&#60;p&#62;but only on specific fields. &#60;/p&#62;
&#60;p&#62;The idea is populate a field using javascript:&#60;br /&#62;
&#60;a href=&#34;http://www.mcfedries.com/javascript/ordertotals.asp&#34; rel=&#34;nofollow&#34;&#62;http://www.mcfedries.com/javascript/ordertotals.asp&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Any Ideas?&#60;/p&#62;
&#60;p&#62;BTW, if anyone is curious, I was able to get After the Deadline spell checker (jquery) to work with multiple textareas.. one click checks the entire form's input and allows the writer to modify before saving the form.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
