Possible collision/conflict between 2 javascripts?
<p>Here is example <a href="http://jsfiddle.net/rigaconnect/gLCjy/14/" rel="nofollow">http://jsfiddle.net/rigaconnect/gLCjy/14/</a></p>

<p>One javascript ensures copy-paste value from above input field. User presses and holds ctrl, then click on field below.</p>

<pre><code>$(document).ready(function(){
$("input").on('click', function(e) {
var name1 = $(this).closest('tr').prev().find('td:eq('+$(this).closest('td').index()+')').find('input').val();
if(e.ctrlKey) $(this).val(name1);
});
});
</code></pre>

<p>Second javascript changes input field value to 1 if in certain input fields value is entered or changed</p>

<pre><code>&lt;input type="text" name="is_row_changed[]" id="is_row_changed1" size="1"&gt;
&lt;script&gt;
$(".row_changed1").on("change", function () {
document.getElementById('is_row_changed1').value = 1;
});
&lt;/script&gt;
</code></pre>

<p>html input fields are like this</p>

<pre><code>&lt;input type="text" name="date_year[]" id="date_year1" class="row_changed1" value="" size="2"&gt;
</code></pre>

<p>If I enter (or copy-paste) values without ctrl+click then all works as necessary.</p>

<p>However if I hold ctrl and click in field then value is copied and appears in the field, but value here <code>&lt;input type="text" name="is_row_changed[]" id="is_row_changed1" size="1"&gt;</code> does not change.</p>

<p>Enter something in left top field. Right top field value changes to 1. That is ok.</p>

<p>Then press and hold ctrl and click in left bottom field. Left bottom field value becomes the same as left top field's value. This is also ok. </p>

<p>But right bottom field value does not change. This is the problem... Actually no idea. Need advice to which direction to go....</p>
