I am trying to simplify the following conditional statement. Are there better way to do this? Thanks.
if ($element.is('#resize')) {
css.left =+ 20;
css.top =+ 3;
if ($('#holder .Main').length < 5 ) {
img.css('display', 'none');
}
img.insertBefore($element);
img.css(css);
} else if($element.is('#bt_id3')) {
css.left =+ 20;
css.top =+ 3;
if ($('#id .Main').length < 5 ) {
img.css('display', 'none');
}
img.insertBefore($element);
img.css(css);
}