Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > ASP.NET 4 General Discussion
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 22nd, 2012, 03:43 AM
Friend of Wrox
 
Join Date: Oct 2009
Posts: 341
Thanks: 14
Thanked 3 Times in 3 Posts
Smile pre select input controls using jquery

Hello all,

Code:
<form action="">
      <table cellspacing="0">
        <tr>
          <th scope="row">
            my own address
          </th>
          <td>
                 <input type="checkbox" name="identity" value="me" id="me" /></label>
          </td>
        </tr>
        <tr>
          <th scope="row">
            friends
          </th>
          <td>
               <input class="valinp" type="radio" name="friends" value="contact" id="friends-contact" />&nbsp;
               <input class="valinp" type="radio" name="friends" value="acquaintance" id="friends-acquaintance" />
               <input class="valinp" type="radio" name="friends" value="friend" id="friends-friend" />
               <input class="valinp" type="radio" name="friends" value="" id="friends-none" />
          </td>
        </tr>
        <tr>
          <th scope="row">
            physical
          </th>
          <td>
            <label for="seen"><input class="valinp" type="checkbox" name="physical" value="seen" id="seen" />&nbsp;seen</label>
          </td>
        </tr>       
      </table>
      <p>
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click"></Button> 
      </p>
    </form>
    <div id="Result">
      rel="" 
    </div>
   <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
I am collecting selected values in the TextBox1 separated by space and storing that textbox's value in database. Now on page load I want to pre select these form controls based on that value which was stored in database.

Many thanks...

Last edited by sophia; January 22nd, 2012 at 03:47 AM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Pre select radiobuttonlist in edit mode sophia ASP.NET 4 General Discussion 1 December 29th, 2011 01:11 PM
not taking input using jquery ravi951 Javascript 0 September 8th, 2011 06:47 AM
Access input controls generated by Client Script vinod_yadav1919 ASP.NET 2.0 Professional 3 April 14th, 2008 08:33 PM
Read input from Dynamically Controls sois C# 3 August 20th, 2007 06:56 PM
How to get the value of pre? Edward King Javascript How-To 2 June 28th, 2005 07:38 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.