Click here to Skip to main content
16,017,638 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
[1:50:29 PM] venki venkatesan: columns.Bound(e => e.QuantityPerAsset).ClientTemplate("input type='text' value='1' id='QuantityPerAsset' style='width:100px' />");

i am using this coding for insert text box in grid this is mvc cshtml page.suppose if i changed any other text box value in grid.that taked only first texbox value only.how to write on text value change in javascript.please send answer.
Posted
Updated 29-Sep-13 22:24pm
v2

Try this example:

HTML
<input type="text" id="txt" onchange="myFunction();"/>


JavaScript
<script type="text/javascript">
        function myFunction() {
            alert("function called");
        }

    </script></script>


hope it helps.

Azee...
 
Share this answer
 
you just need to call function on "onchange" event.
which get fires every time you write something.

Inside that function you can implement your required functionality.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900