Monday

jquery select add remove item


to add new option to select control with DropDownId id :
 
$('#DropDownId').append(new Option('text','val'));



to remove option to select control with DropDownId id:
 
$("#DropDownId option[value='val1']").remove();
$("#DropDownId option:contains('val1')").remove();


No comments:

test smtp server with powershell

Send-MailMessage -SMTPServer smtp.domain.com -To [email protected] -From [email protected] -Subject "This is a test email" -Body ...