Hi all,i'm wondering how to detect select option changes.For example i want the data in database changed when i click on update button and if there are changes on the select option side.If the values on the select option are not changed,i can't update the data..Is there a way to achieve it?Thanks a lot...
Last edited by yonghan; 10-24-2009 at 09:05 AM.
You'll can use the onchange event.
HTML Code:<select onchange='someJavaScriptfunction()'>...
Actually i look at the virtuemart that they implement that way,where if the select option value is not changed,then i can't update the order status and it will show message that there are no changes ..The update button was a submit button i suppose..I'm intending to follow it..Thanks...
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks