Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
365
WebTextEdit - ClientSide javascript change textbox value
posted

Hi, i need help please!

I can change the style of a textbox, but now I must have 4 textboxes that creates one textbox value.

So i want onchange of textbox: append and the value to text box:

eg: Value Text box: aa bb cc

Textbox1: aa   ; Texbox2: bb, Textbox: cc

Onchange of each of the 3 textboxes create Value Textbox value:

This is the code i have to change the style:

var edit = igedit_getById("FG1010NItemD"); edit.Element.style.backgroundColor = 'red';

 Regards

Parents
No Data
Reply
  • 365
    posted

    Great Stuff and thank You very much

    var edit = igedit_getById("FG1010NItemD"); var TextBox1 = igedit_getById("FG1010NItemDBrand");

    var TextBox2 = igedit_getById("FG1010NItemDType"); var TextBox3 = igedit_getById("FG1010NItemDVar");

    var TextBox4 = igedit_getById("FG1010NItemDConfig"); var Text1 = TextBox1.getText();var Text2 = TextBox2.getText();

    var Text3 = TextBox3.getText(); var Text4 = TextBox4.getText(); edit.setText(Text1 + " " + Text2 + " " + Text3 + " " + Text4);

    Only problem i have is that this does not work when Valuebox (edit) is a readonly field.

    When i set this field to false then it works!

    Is there a way around this, and once again thank you! 

     

Children