Results 1 to 2 of 2

Thread: textbox

  1. #1

    Default textbox

    Hi

    I want to place the textbox in between two text

    eg.

    to acquire _____% of the total value of equity

    I want to get % value in text box.

    How to do this?

    Thanks in advance..

  2. #2
    Ext JS Premium Member dj's Avatar
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    573

    Default

    Hi sramkumarmca,

    if the text box does not need to be part of a layout/the component hierarchie you can use the renderTo config option: (AFAIK if you use a Ext.form.FormPanel then the text field needs to be a child of it to work properly)

    HTML:
    Code:
    <p>to acquire <span id='textbox'></span>% of the total value of equity</p>
    JavaScript
    Code:
    var textbox = new Ext.form.TextField({
        renderTo: 'textbox'
    });
    Daniel Jagszent
    [email protected]??gsze?t.de <- convert to plain ASCII to get my email address

Similar Threads

  1. Money Textbox
    By boonkerz in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 11 Oct 2009, 1:52 PM
  2. Textbox CSS error
    By marman in forum Ext GWT: Discussion
    Replies: 1
    Last Post: 16 Sep 2009, 5:04 AM
  3. TextBox with a description
    By thedarklord in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 27 Jul 2008, 5:09 PM
  4. if possible to dynamic add textbox?
    By kohwuyea in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 31 May 2008, 6:49 PM
  5. Set the value of the textbox txtarea
    By xnoor in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 9 Apr 2008, 4:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •