I'm using .load()
to load content (partial) from controller
of my application. What I wanted to do before .load
was to add code html
while loading a partial.
For this I tried to .append
before .load
:
$("#Produto").append($('<br />')).load('/ContratoCli/carregaProduto', { serie: $("#Serie").val(), numDoc: $("#NumDoc").val() })
;
What is happening is that load
uses div
all and I can not add <br />
before (delete and load over), getting:
How do I get around this?