How to change the content of a text input?

Hi!
I would like to help me with the following
I've create and input text, for example this:
var one= sym.$("one")
one.html("Enter your answer: ");
inputOne = $('<input />').attr({'type':'text', 'value':'', 'id':'one'});
inputOne .css ('font-size', 14);
inputOne .css ('width', 350);
inputOne .css ('background-color', '#0a81fb');
inputOne .appendTo(one);
Now the user can write anything in this input text.
The corret word that the user has to write is "correct"
so i use an if to validate it
if (inputOne.val() == "correct"){
     alert ("good")
}else {
       // HERE IS MY PROBLEM!!!   What i need to do is: if the user types a wrong answer i           //need to show him the correct answer in the input text.
I hope you can help me.
Thank's =)

sym.$("NameofInputTextElement").html("What you want to change the text to");
Have you tried this yet?
Katherine

Similar Messages

  • How to change the Content-Transfer-Encoding for the fmddataa.fmd from base

    Dear all,
       When I using this SO_DOCUMENT_REPOSITORY_MANAGERto send email,I find the fmddata.fmd  file have been changed  to binary file attachment. I don't hope so.any one have good idea to avoid this case occur?
      Can you tell me how to change the Content-Transfer-Encoding for the fmddata.fmd from base64 to quoted-printable.  The quoted-printable is the Content-Transfer-Encoding for text file with extension .txt
    Best Regards,
    Merry

    Thank you

  • How to read the content of a text file (by character)?

    Guys,
    Good day!
    I'm back just need again your help. Is there anyone knows how to read the content of a text file not by line but by character.
    Please help me. Thank you so much in advance.
    Jojo

    http://java.sun.com/javase/6/docs/api/index.html
    package java.io
    InputStream.read(): int
    Reads the next byte of data from the input stream.
    Implementation:
    InputStreamReader
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes them into characters using a specified charset. The charset that it uses may be specified by name or may be given explicitly, or the platform's default charset may be accepted.

  • How to change the font size of text and case in smartforms

    hi,
       could any one explain how to change the font size of text in smartforms. ex. previously i had taken P4 left aligned and C6 but now i want to decrease the font without making it bold. pl......... guide me
       secondly the value which are coming from tables are upper case but i need lower case. pl. guide
    thanking u

    check out the smart styles...create a font of ur size n use.
    Define the paragraphs & character formats using SMARTSTYLES & use them in your smartform.
    You have to give the smartstyle name in the Form attributes-->Output options for the formats to be used in your smartform.
    You can define font size in Smartform Style.
    Smartform Styles > Charcterformat> Font --> size.
    to load the font to SAP server chk this
    Re: Adding a new font for SAPscript/SMARTFORM output
    Regards
    Vasu

  • How to change the font size of text element in smartform

    Hi
    i want to know how to change the font size of text element in smartform
    regards
    Gincy

    Hi
    You can create Smartstyles, in which you can define paragraph formats for texts and character formats for character level changes.
    Paragraph format ---> alignment, font size etc
    character format for ---> superscript, subscript.
    After creating, in your smartform, there will be a option in the text element to enter a style.
    You give the created style and you can use the paragraph and character formats i that style.
    Hope this is clear..
    Regards
    Sekar

  • How to change the font size of Text Box  Properties Appearance tab into 2 decimal digit.

    How to change the font size of Text Box  Properties Appearance tab into 2 decimal digit. I am uanble to modify it to 5.38 pt for example. Its only allowing to 1 decimal place.

    Click on each field and the choose Properties from either File menu (or if on Mac hold dow mouse button until context menu appears choose properties)
    go to Font
    choose desired size and type font,you can choose to make this the default.
    Do this with each field.
    Or if you have a lot of fields:
    while one is selected select all of them
    then go to fonts in properties
    change Font and size and make default.

  • How to change the font size of Text box tool ?

    How to change the font size of Text box tool ?
    I am using Acrobat PDF 6.0
    Tools > Advanced Commenting > Text Box Tool
    I need to know how to change the font size. The default font size is too big.
    let me know
    Thanks

    I do not have AA6 available right now (I can check at home this evening). I am also using AA Pro, not Std. In AA7, there is a text box tool that is a commenting tool. When I started typing, a properties toolbar came up that had the font size and such. I haven't figured out how to get the toolbar after the fact. In AA8, I selected the text box tool and then went to view and selected the properties bar (the font size and all showed then), or use Ctrl-E when editing the text. I have not been able to figure out how to edit the text in a text box after you have created it - think it is a mental block right now. Bill

  • How to change the "content created" date/time in FCPX?

    Since I've had problems importing my whole iMovie event library into FCPX I decided to run some tests with importing individual files (part of iMovie events and originally imported from camera into iMovie). Some of them for some reason got the wrong "content created" date/time in them while in iMovie they have the right date/time set. Does anybody have an idea on how to change the "content created" timestamp?

    I had a bunch of DV files that imported stamped with the file modification date and time.  I did not find a way to change it in FCPX. With FCPX not running, I used A Better Finder Attributes to modify the creation and modification dates of the files in the event folder. FCPX reconnected to them but the event still showed the old range of dates so I created a new event and moved the clips to it. Maybe ther is a beter way but that is how I did it.

  • On opening up toast to burn its telling me that the tv standard is set to ntsc but all of my content is in pal format. how to change the content to ntsc seeing i am using final cut 10.

    on opening up toast to burn its telling me that the tv standard is set to ntsc but all of my content is in pal format. how to change the content to ntsc seeing i am using final cut 10.

    Select the Project in the Browser.  Go to the Info section of the Inspector.  Click the Modify Settings button.  For  Video Properties, change the Format from PAL to NTSC.  Export again, you'll be fine.

  • How to change the content of GTC (terms and conditions) for Partner

    Hi all,
         We are using R/3 version of ISA B2B site. while creating order thru Shopping Basket we have requirement that We need to provide GTC (General Terms and Condions) for the Partner (View GTC link ).  Right now some default text is displayed in that window (text text text ext text text text text text like that). we need to change this.
    where i can change this text and enter our own terms and conditions.
    Please help me to resolve this,
    thanks in advance
    siva kumar

    Hi Siva,
    the GTC is shown in the JSP b2c/order/terms_and_conditions.jsp. If you have a look at the file, you will find the following code:
    <isa:translate key="b2c.order.termsAndConds.txt.dmy"/>
    The translate tag will render the language dependant text for the resource key "b2c.order.termsAndConds.txt.dmy". To change the content that is shown you can change the resource text or create your own resource key in the corresponding resource file. The resource files are located in the src-folder of the web application DC.
    Best Regards,
    Peter Kraus
    SAP Web Channel Consultant
    http://www.leonardo-it.com

  • How to change the content in request at approval stage

    Dear experts,
    We have a requirement like following:
    Frist, User submits a new account request, the field "Position" is set to cerntain value, eg. sales support
    Then, Manager should have the capbility to change the content in field "Position", such as changeing sales support to sales manager, when he approves the request.
    However, it seems that only very few fields can be changed after request submition.
    How could we configure AC to let the managers can change the content in request at approval stage?
    Thanks a lot!

    Tang,
    In the stage for the Manager set the "Change Request" to 'Yes'.  This will open up a few fields for you, including user group, role validity dates, etc.  I do not believe this will open up position though.

  • How to Change the customer subscreen tab text in maintanance order ?

    Hi all,
    I have implemented a screen-exit for maintanance order using IWO10018. it is working fine but the tab text of the added screen is ENHANCEMENT. I tried to change it by creating the text symbols in  the program with the screen . But still it is not changing.
    Please help me to solve the issue?
    Thanks,
    Aravind.

    Refer:
    Re: Change tab strip name for ME52N transaction
    How to change the name of Customer  Tab strip .
    Rename Custom tab in IW31 transaction
    Check whether you can maintain the tab page title here
    transaction spro-investment management-Appropriation requests-control data-specify tab layout for Appropriation reuqests

  • How to store the contents of a text file directly in to a clob field

    Hi All,
    Could anyone help me to store the contents of a text file (*.txt,*.xml etc)directly in to a clob field.
    Thanks in advance
    Jayaram.

    One way is to use sqlloader. Three files are used. A control file, an xml data file, and a file with the path of the xml data file. Here's the control file. It reads load.file, which is the file with the path of the xml data file. It names the path ext_path, and inserts the xml into field xml_field.
    CONTENTS OF CONTROL FILE:
    load DATA
    INFILE 'load.file'
    APPEND
    INTO TABLE xml_table
    ( ext_path FILLER CHAR(13),
    "XML_FIELD" LOBFILE(ext_fname) TERMINATED BY EOF
    CONTENTS OF FILE LOAD.FILE:
    /tmp/load.dat
    The xml is in the file /tmp/load.dat.
    null

  • How to customize the content set in text as part of tag cq:text property="text"/

    We use the tag <cq:text property="text"/> to get the content, which is set in the jcr property "text".  Text was set in Richtext component and it has hyper link.
    Now, we have to customize the text.
    Example:-
    Actual Text in 'text' property:-
    <p>Click <a data-action="Hyperlink" data-upc-tooltip-type="none" href="/content/www-abc-healthcare-ch/en/offer.html">here</a> for the link</p> <p></p>
    After customization in 'text' property:-
    <p>Click <a data-action="Hyperlink" data-upc-tooltip-type="none" href="/content/www-abc-healthcare-ch/en/offer">here</a> for the link</p> <p></p>
    i.e .html has been removed.
    I tried customizing and set back to text attribute using <c:set var="text" value="<CustomizedText>" /> but even after that tag <cq:text property="text"/> retrieves the old content i.e with .html
    Please suggest how to override text content, so that the tag <cq:text property="text"/> will print customized text.

      Which version of cq? Is Strict Extension Check enabled at  http://<host>:<port>/system/console/configMgr/com.day.cq.rewriter.linkchecker.impl.LinkCheckerTra nsformerFactory
    Thanks,
    Sham

  • How to read the contents of a text file and populate the data in a table ?

    Hello All,
      Can anyone advise on how to acheieve the above ? I am trying to read in a text file (CSV) and have the contents populated to the respective UI elements in a table. Any help is greatly appreciated.
    from
    Kwok Wei

    Hi,
    Let us consider you have list of names(Seperated by delimeter) in a text file and you want to display in  a table.
    1. Create Context Node "Names" and context attribute "Name"
    2. Create Table and bind to the above context.
    3.Write the following code in the "Init method.
    try{
    FileReader f =new FileReader("");
    BufferedReader r=new BufferedReader(f);
    String names=r.readLine();
    Vector Names=new Vector();
    // Use Tokenizer and store all the names i a vector//
    for(int i=0;i<Names.size();i++){
    IPrivate<<VieName>>.INameElement ele=wdContext.createNameElement();
    ele.set<<Name>>( Names.get(i).toString());
    wdContext.NodeName().addElement(ele);
    Regards, Anilkumar
    Message was edited by: Anilkumar Vippagunta

Maybe you are looking for

  • ERROR in COSTING VARIANCE and Picking the Halb Actual Cost in PrOr afterMRP

    Hi Gurus My PS collegue has a issue in Production order linking with his WBS element As it is a Production order related iam in the loop for resolving it Ok the Description of the Problem is "Error in Planned Variance Calculation of Production Order

  • Trying to update to 2.0.2 iTunes wont recognise phone has been restored

    I decided to take the risk and update to 2.0.2 the day before yesterday and it stopped half way with an error. My phone was then stuck on the connect to itunes screen with iTunes refusing to recognise the phone. I did a DFU restore as thats the only

  • Pdf report doesn`t show cyrillic letters

    Hi everyone. For generate report I begin to use Exaprom PDF https://decibel.ni.com/content/docs/DOC-10952 . But there are I find a bug. I try to insert russian letters to the pdf as text, there is no error. But when I open pdf documents, there is not

  • Itunes will not quit

    itunes will not just quit, the downloads say they are compete but the little blu icon shows something is still downloading. I have to force quit each time. I am using the lates version of itunes 11.1 but it would happen with the other verision prior

  • BI 7.0 Content Install

    Hi Gurus, Can any one let me know how to install BI 7.0 content by step by step process? I will assign full points. Thanks in advance Sri