Jump to content

alobi

Members
  • Posts

    14
  • Joined

  • Last visited

Posts posted by alobi

  1. I have tried the code it still does not working. My aim is to make sure that users do not search with both lastname and phone number at the same time. could you look at it one more time?

     

    At this line of code I get a syntax error message "document.getElementById('phone').onchange = disablefield; " It tells me that code hint will not work until the error is fix.

    Thanks

     

     

     

  2. I am trying to just be able to do a select on few items on the table and display the result so that customer service can use the result to answer questions or make decision. I probably have the wrong idea about what tool I need.

     

    For instance, a customer calls customer service and wants to know about his/her reservation. I want customer service to be able to pull the client information up on the screen to respond to the question.

     

    This part of the site will be password protected.

    Thank you for your time

  3. My first post was not clear enough. I am sorry, my bad. Here is a better posting. On my form, I have two option buttons, one for phone number and the other for last name. I have two text boxes , one for phone number the other for last name My goal is when the phone Number option is clicked to disable the last name text box, and enable the Phone Number text box, and when the option button last Name is clicked to disable the Phone Number text box and enable the txtlastName. Onformload. I need both options unchecked and the text boxes enabled

    function disablefield() { if ( document.admin.customerInfo_0.checked = true) document.admin.txtPhoneNumber.value = enabled elseif (admin.customerInfo_1.value="yes") document.admin.txtLastName.value.enabled=false }<form action="post" method="get" name="admin"><input type="radio" name="customerInfo" value="radio" id="customerInfo_0" /><input type="radio" name="customerInfo" value="radio" id="customerInfo_1" /><input name="txtPhoneNumber" type="text" id="PhoneNumber" size="25" /> Last Name<input name="txtLastName" type="text" size
  4. I have two radio buttons and two textboxes on a form, I want to be able to disable one of the textboxes when the optiion box is clicked. Pls help, I am very new to javascript. Thank you for you time. He is my code

    function disablefield(){if ( document.admin.customerInfo_0.checked = true)document.admin.txtPhoneNumber.value = enabledelseif (admin.customerInfo_1.value="yes")document.admin.txtLastName.value.enabled=false}<form action="post" method="get" name="admin"><input type="radio" name="customerInfo" value="radio" id="customerInfo_0" /><input type="radio" name="customerInfo" value="radio" id="customerInfo_1" /><input name="txtPhoneNumber" type="text" id="PhoneNumber" size="25" />Last Name<input name="txtLastName" type="text" size

×
×
  • Create New...