How to get the value from from input text?
- <html>
- <head>
- <title>jquery test</title>
- <script type="text/javascript" src="js/jquery-1.8.2.js"></script>
- <script type="text/javascript" src="js/jquery-ui-1.9.1.custom.js"></script>
- <!-- <script type="text/javascript" src="js/jquery.mobile-1.2.0.js"></script> -->
- <link type="text/css" href="css/jquery-ui-1.9.1.custom.css" rel="stylesheet" >
- <!-- <link type="text/css" href="css/jquery.mobile-1.2.0.css" rel="stylesheet" > -->
- <script type="text/javascript">
-
- $(document).ready(function() {
- $('#id_div_dial').dialog();
- });
-
- $('id_input_submit').click(function() {
- temp = $('id_input_name').val();
- alert(temp);
- })
-
- </script>
- </head>
- <body>
- <div id="id_div_dial" title="Basic Dialog">
- <form id="id_form_basic" action=".">
- <input type="text" id="id_input_name" />
- <input type="button" id="id_input_submit" value="Submit"/>
- </form>
- </div>
- <?php
- echo 'Hello world';
- ?>
- </body>
- </html>
Typing something in input box if i click the button from from, it doesn't do anything. Why?
How can i get value from input textbox of that box?