Hi guys when I use standard java script this works but when I use jQery it causes problems. For example it does not change the txt and it does not change the color based on where my mouse is.
(function startup() {
//document.getElementById("testID").innerHTML = "Shane Drafahl";
var element = $("#testID");
element.text("Shanel");
var main = document.getElementById("main");
main.onmouseenter = function () {
main.style.backgroundColor = "#888"
};
main.onmouseleave = function () {
main.style.backgroundColor = "";
};
})();
I found the solution to that question but now I am trying to toggle a class but when I put the info in about the new class in my css file it doesn't transfer over when I launch chrome in dev settings.
Now I have a question about this exception. I am trying to mess around with MVC and I get this exception when I try to run it.
Project emptyPage (.NETCoreApp,Version=v1.0) was previously compiled. Skipping compilation.
Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeLoadException: Could not load type 'Microsoft.Extensions.DependencyInjection.Extensions.ServiceCollectionExtensions' from assembly 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.
at Microsoft.Extensions.DependencyInjection.MvcCoreServiceCollectionExtensions.AddMvcCore(IServiceCollection services)
at Microsoft.Extensions.DependencyInjection.MvcServiceCollectionExtensions.AddMvc(IServiceCollection services)
at emptyPage.Startup.ConfigureServices(IServiceCollection services)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.AspNetCore.Hosting.Internal.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection exportServices)
at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()
at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()
at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
at emptyPage.Program.Main(String[] args)