Results 1 to 3 of 3

Thread: current year in text field

  1. #1
    Ext User
    Join Date
    May 2010
    Location
    india Bangalore
    Posts
    186

    Default current year in text field

    hi,


    m new to extjs
    this might be silly to u but m not getting..

    i want only current year (i.e 2010)to be displayed by default in text field in grid tool bar..

    plsssssss help

  2. #2

  3. #3
    Ext User
    Join Date
    May 2010
    Location
    india Bangalore
    Posts
    186

    Default

    Quote Originally Posted by wm003 View Post
    PHP Code:
    Ext.form.TextField({
        
    value: new Date().format('Y')
    }); 
    thanku...

Similar Threads

  1. how do I get the current value from a form field?
    By nickweavers in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 23 Feb 2010, 11:59 AM
  2. [SOLVED]PropertyGrid Current Edited Field
    By nunez in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 1 Dec 2008, 7:53 AM
  3. do not select existing text in text field when focus via tab key
    By mjlecomte in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 13 Jul 2008, 6:23 PM
  4. How to acquir current field id and next id when press Enter Key..
    By kevinwu8 in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 12 Mar 2008, 8:31 PM
  5. Date field month/year dropdown has badly formed HTML
    By quilleashm in forum Ext 1.x: Bugs
    Replies: 1
    Last Post: 18 Jun 2007, 3:19 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
  •