All the sources codespage 12
JavaScript
June 14 2016 at 01:30
#279
function negative(number) {
if (number.match(/^-\d+$/)) {
return true;
} else {
return false;
}
}
Java
June 13 2016 at 01:30
#278
public MyObject getInstance() {
return this;
}
JavaScript
June 12 2016 at 01:30
#277
if ($('#hdnGender').val() == "" || $('#hdnGender').val() == "notdisclosed") {
$('#cboGender').val('notdisclosed');
} else if ($('#hdnGender').val() == "Male") {
$('#cboGender').val('Male');
} else {
$('#cboGender').val('Female');
}