Jump to content

help in javascript for not assigning same driver to some guest if his status=waiting or started


Recommended Posts

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

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.