Search

just show me the code

Sunday, October 26, 2008

get value in JQuery

you can see it in action here
you can download the code here

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <script type="text/javascript" src="scripts/jquery.js"><script>
        <script type="text/javascript">
            $(function() {
                $("#display").click(function() {
                    var o = $("#input");
                    var s = o[0].value;
                    //alert(s);
                    var o2 = $("#output")
                    o2.val(s);
                });
            });
        <script>
    <head>
    <body>
        <input id="input" type="text" value="" />
        <button id="display">display<button>
        <input id="output" type="text" value="" />
    <body>
<html>



1 comment:

  1. http://marcgrabanski.com/article/jquery-select-list-values

    ReplyDelete

Contributors