singhRahul34 Posted August 10, 2015 Share Posted August 10, 2015 once i select the driver name from the dropdown suppose once i assign driver (xyz) to some guest if his status = reached then he should available to assign some other guest or if his status = started or waiting he should not be available to assign some other guest how can i write code in javascript for that here is the given file please give me the logic from that i can do this guestArr.html Quote Link to comment https://forums.phpfreaks.com/topic/297706-help-in-javascript-for-not-assigning-same-driver-to-some-guest-if-his-statuswaiting-or-started/ Share on other sites More sharing options...
maxxd Posted August 10, 2015 Share Posted August 10, 2015 The logic is pretty straight-forward; check the current status of the driver - if it's 'started' or 'waiting', disable the driver name selector. I didn't download the attachment to see the actual code you're working with - don't take it personally, it's not that I specifically don't trust you, I don't trust anyone on the Internet. Quote Link to comment https://forums.phpfreaks.com/topic/297706-help-in-javascript-for-not-assigning-same-driver-to-some-guest-if-his-statuswaiting-or-started/#findComment-1518411 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.