Echo "some text" next to text field

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
fauzi.mj
User
Posts: 9

Echo "some text" next to text field

Post 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.


arbei
User
Posts: 9284

Post 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.


fauzi.mj
User
Posts: 9

Post by fauzi.mj »

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


sangnandar
User
Posts: 980

Post by sangnandar »

How to do this with Server Side scripts?


arbei
User
Posts: 9284

Post by arbei »

Search "CustomMsg" in this forum.


Post Reply