hi,
use this simple methoed-
function showORhide(obj) {
if ($('#' + obj).length > 0) {
if ($('#' + obj)[0].style.display == 'none') {
$('#' + obj).css('display', 'block');
}
else {
$('#' + obj).hide();
}
}
}
with your code like -
<div id="divHr" style="display: none;">
<hr />
</div>
<input type="button" value="submit" onclick="showORhide('divHr')" />
it might help you