This topic is locked

Add Watermark Text For Tips On Text Box

1/8/2017 10:48:54 PM
PHPRunner Tips and Tricks
W
wehaye author

To help users input applications, sometimes need to display a help line (watermark text) in the "text box" like the following screenshot:


In PHPRunner, you can do it very easily.

  • First find out what the "id text box" which will be given the watermark that is the way to run the application, open a browser and right click on "text box", and select inspect element, note what the id. Like the following screenshot:


  • The two return to PHPRunner project, open "JavaScript onload Event". Enter the following script:

$( "#value_ContactName_1" ).attr("placeholder", "Please Enter Your Full Name");


Done.

You will see a sentence that appears in the help text box.

May be useful.