onchange not work

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

onchange not work

Post by testuser »

Hi all,

I have a table with a field "ProjectID" that relates to a project table. I am testing the onchange event of this combo box. I put the following code on Client Scripts > Table Specific > Add/Copy Page > Client Script:

$("#x__ProjectID").change(function() {
alert("testing");
});

But when I select/change a project, it doesn't show a popup. Any ideas?


mobhar
User
Posts: 11905

Post by mobhar »

Use "x_ProjectID" (single underline) instead of "x__ProjectID" (double underline).


danielc
User
Posts: 1599

Post by danielc »

testuser wrote:
put the following code on Client Scripts > Table Specific > Add/Copy Page > Client
Script:

Put in Startup Script instead of Client Script.


testuser
User
Posts: 24

Post by testuser »

Thanks, danielc. That's what I need to do.


Post Reply