View Single Post
Old 01-21-2013, 11:06 AM   PM User | #2
Kyle123
New Coder

 
Join Date: Jan 2013
Posts: 10
Thanks: 3
Thanked 1 Time in 1 Post
Kyle123 is an unknown quantity at this point
Since you're using JQuery, why not:

PHP Code:
        <script>
            $(
document).ready(function(){
                
                $(
"input").val("value");

                $(
"input").change(function() {
                    
alert("changed");
                });
            });
            
        
</script>
    </head>
    <body>
        <input type="text" id="text1"/>
    </body> 
Working example: http://jsfiddle.net/96gXw/
Kyle123 is offline   Reply With Quote