title: How to place a posted value in a textbox
body: <p>Here in click.html,OnClick of clint_ip text box is redirecting to index.html.There we will select some client_ip's .After hitting the submit button in the index.html,I'm able to retrieve the values in the click.html.But I'm unable to keep the retrieved value into the client_ip textbox of click.html.I'm able to get the values in the "res" variable.</p>
  
  <p>My click.html</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
   &lt;script src="http://d3js.org/d3.v3.min.js" charset="utf-8"&gt;&lt;/script&gt;
  &lt;script src="https://code.jquery.com/jquery-1.10.2.js"&gt;&lt;/script&gt;
  
  &lt;script type="text/javascript" src="http://cdn.datatables.net/1.10.9/js/jquery.dataTables.min.js"&gt;&lt;/script&gt;
  
  &lt;script type="text/javascript" src="https://raw.githubusercontent.com/mpryvkin/Plugins/master/pagination/simple_numbers_no_ellipses.js"&gt;&lt;/script&gt;
  
  &lt;link rel='stylesheet' href='style.css'&gt;
  &lt;link rel="stylesheet" type="text/css" href="http://cdn.datatables.net/1.10.9/css/jquery.dataTables.min.css"&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div id="clicDiv"&gt;
  Client IP :&lt;input type="text" id="ipClick"  onclick="getValue();" name="Client IP" /&gt;
  &lt;/div&gt;
  &lt;script&gt;
  
  
  function getUSERIP(){
  
  if(!window.location.href.match(/client_ip=.*?([^\&amp;])/))
     return;
  
  var ip = window.location.href.match(/client_ip=.*?([^\&amp;])/)[0].replace('client_ip=','');
  
  
  $("#ipClick").val(ip);
  
  }
  getUSERIP();
  
  function getValue(){
  location.href='/home/divya/html_docs/index.html';
  
  }
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>My index.html:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;meta charset='utf-8'&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;script src="http://d3js.org/d3.v3.min.js" charset="utf-8"&gt;&lt;/script&gt;
  &lt;script src="https://code.jquery.com/jquery-1.10.2.js"&gt;&lt;/script&gt;
  
  &lt;script type="text/javascript" src="http://cdn.datatables.net/1.10.9/js/jquery.dataTables.min.js"&gt;&lt;/script&gt;
  
  &lt;script type="text/javascript" src="https://raw.githubusercontent.com/mpryvkin/Plugins/master/pagination/simple_numbers_no_ellipses.js"&gt;&lt;/script&gt;
  
  &lt;link rel='stylesheet' href='style.css'&gt;
  &lt;link rel="stylesheet" type="text/css" href="http://cdn.datatables.net/1.10.9/css/jquery.dataTables.min.css"&gt;
  
  
    &lt;script&gt;
  
    $(document).ready(function() {
  
  $("#ip").val('');
  
      $('#example').DataTable( {
          "pagingType": "full_numbers"
      } );
  } );
  
  &lt;/script&gt;
  
    &lt;/head&gt;
    &lt;body&gt;
  
  &lt;div&gt;
  &lt;form action="/home/divya/html_docs/click.html" method="get" &gt;
  Client_ip :&lt;input type="text" id ="ip" name="client_ip" style="width: 600px;"/&gt;
  &lt;div id="subDiv"&gt;
  &lt;button type="submit" value="Submit"&gt;Submit&lt;/button&gt;
  &lt;/div&gt;
  &lt;/div&gt;&lt;/br&gt;
  
  &lt;table id="example" class="display" cellspacing="0" width="100%"&gt;
  &lt;/table&gt;
  
     &lt;script&gt;
  
    var tabulate = function (data,columns) {
  var svg = d3.select('#ip').append("svg")
    var table = d3.select('#example')
      var thead = table.append('thead')
      var tbody = table.append('tbody')
  
      thead.append('tr')
        .selectAll('th')
          .data(columns)
          .enter()
        .append('th')
          .text(function (d) { return d })
  
      var rows = tbody.selectAll('tr')
          .data(data)
          .enter()
        .append('tr')
  
      var cells = rows.selectAll('td')
          .data(function(row) {
              return columns.map(function (column) {
                  return { column: column, value: row[column] }
            })
        })
        .enter()
      .append('td')
     .text(function (d) { return d.value })
     .append("input")
     .attr("id","change")
     .attr("type", "checkbox")
     .style("float","left")
  .on("click", function(d,i) { 
  
          var csv = $(':checkbox[id=change]:checked').map(function(){return $(this).parent().text();}).get().join(',');
  
          $('#ip').val(csv);
  
  });
  
    return table;
  }
  
  d3.csv('some1.csv',function (data) {
      var columns = ['client_ip']
    tabulate(data,columns)
  });
    &lt;/script&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Can anyone please help me out regarding this issue ...</p>