Tuesday, May 29, 2012

jquery - assign a text to a textbox when checkbox is checked by client


   $('#<%= CheckBox1.ClientID %>').click(function ()
{


if (this.checked)
{
$
('#<%= firstnamedrivertxt.ClientID %>').val($('#<%= firstnametxt.ClientID %>').val());
}
else
{
$
('#<%= firstnamedrivertxt.ClientID %>').val(null);
}
});

Javascript find highest and lowest from the given inputs

function highAndLow(numbers){ // numbers = "4 5 29 54 4 0 -214 542 -64 1 -3 6 -6"   let numbersInArr = numbers.split(' '...