Page 1 of 1

Echo "some text" next to text field

Posted: Sun Apr 23, 2017 3:49 pm
by fauzi.mj

Hi,

Can someone help me, I just want to put / echo some text beside the text field but no idea on how to do it.

[ text field ] KG <--- echo this KG after text field.

Thank You.


Re: Echo "some text" next to text field

Posted: Mon Apr 24, 2017 10:01 am
by arbei

You can use .append() jQuery function in Startup Script of the Add/Edit page to add your text next to the text input.

For example:
$("#x_<Field>").parent().append("<Your Text>");

or

$("#el<Table><Field>").append("<Your Text>");

Note that you can right click on any elements then choose "Inspect" to check their id or class.


Re: Echo "some text" next to text field

Posted: Tue Apr 25, 2017 12:34 pm
by fauzi.mj

Thanks for your help now i can append text beside of my text field.


Re: Echo "some text" next to text field

Posted: Mon May 01, 2017 1:47 am
by sangnandar

How to do this with Server Side scripts?


Re: Echo "some text" next to text field

Posted: Tue May 02, 2017 11:57 am
by arbei

Search "CustomMsg" in this forum.