DEV Community

Discussion on: Add items dynamically in list in .net core

Collapse
 
yoannagicheva profile image
yoanna-gicheva • Edited

Hello, Stevan, thank you for your tutorial. It is just great, it is in a big help for me in my first MVC project. I would like to ask you something additional about the PartialViews loaded inside the form.
I have a Partial View with a JavaScript inside which has to operate only on the exact view but instead this script only operates on the first generated partial view. Do you have an idea how to mend this?

Collapse
 
stevcooo profile image
Stevan Kostoski

I don't know what is your javascript code in the partial view, it's hard for me to give you an idea or solution. Maybe you can consider making a more general javascript code and run it on the view, that way you will avoid loading javascript with all your partial views.