Hello, I have a partial view
, which I render with the following code:
$.ajax({
url: URL,
success: function (data) {
$("#DIV").append(data);
}
});
And within that page, I call a function
<script>
Funcao(selectorId);
</script>
I need this function to be called within partial view,
after being loaded with append
Since the parameter (selectorId) of the function is received unique, then every time I call to rename in $("#DIV").append(data);
the selectorId will be different ...
How can I do this?
My element is mounted like this in ASP.NET code:
<input id="Contatos[@Guid.NewGuid().ToString()].Nome" name="Contatos[@Guid.NewGuid().ToString()].Nome" type="text" value="0">
Example of resulting ID:
Contatos[8902dbfd-e856-48c6-8f17-d0548b2dea62].Nome