jquery find if select option exists
$("#yourSelect option[value='yourValue']").length > 0;
jquery find if select option exists
$("#yourSelect option[value='yourValue']").length > 0;
jquery add option if not exist
var optionExists = ($('#columnsAvailable option[value=' + $(this).val() + ']').length > 0);
if(!optionExists)
{
$('#columnsAvailable').append("<option value='"+$(this).val()+"'>"+$(this).text()+"</option>");
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us