Hi,
I have Multiselected ddl and textbox . i am selecting item from ddl and insert email id related to ddl item.
code in JS onchange event
1) if i am selecting ID2 and ID4 that time " [email protected]" hardcoded in js automatically inserted in emailid textbox and remaining are manually inserted by user.
2)If i am removing second ID2 from ddl that time emailId "b@gmail." texbox value related to item remove and remainig as it in textbox.

Jayraj ChhayaPosted Mar 13, 2024, 10:24 AM
To achieve this functionality, you can use JavaScript in the
onchangeevent of the dropdown list.Implement the JavaScript function to handle the dropdown change:
Ensure that the JavaScript function updates the textbox with the appropriate email IDs based on the selected dropdown items.
Handle the removal of items from the dropdown list by adjusting the textbox value accordingly in the
handleDropdownChangefunction.AmitPosted Mar 20, 2024, 10:42 AM
Handle the removal of items from the dropdown list by adjusting the textbox value accordingly in the
handleDropdownChangefunction.How to handle if click on ddl item and textbox value remove.