This topic is locked
[SOLVED]

 usermessage

5/25/2011 12:55:24 PM
PHPRunner General questions
R
rooster27 author

Is it possible to set the USER_MESSAGE with javascript?

e.g. $('div[@id=usermessage1]').setValue(Test); ?

Sergey Kornilov admin 5/25/2011

You can do that however you cannot mix jQuery and Javascript API. I would suggest to use plain jQuery for this task as user message is not a control on Edit/Add pages and Javascript API won't cut here.

R
rooster27 author 5/25/2011



You can do that however you cannot mix jQuery and Javascript API. I would suggest to use plain jQuery for this task as user message is not a control on Edit/Add pages and Javascript API won't cut here.


Thanks!

$('div[@id=usermessage1]').text("Test");

does the trick.