首页 \ 问答 \ 使用jQuery添加表单字段(wordpress中的联系人7表单)(Adding form fields with jQuery (contact 7 form in wordpress))

使用jQuery添加表单字段(wordpress中的联系人7表单)(Adding form fields with jQuery (contact 7 form in wordpress))

我正在尝试使用jQuery添加表单字段(wordpress中的联系人7表单)。 它具有用jQuery显示的隐藏字段。

我刚刚完成了一个工作正常的jsFiddle: http : //jsfiddle.net/Mangomeat/SfTyG/1/

我的javascript:

$(document.body).click(function () {
    $("div:hidden:first").fadeIn("slow");
  });

但是当我将jQuery函数放入我的wordpress测试页面时,我无法使其工作。

http://libra-frisk.com/uberMenuTest/?page_id=84#


I´m trying to add form fields with jQuery (contact 7 form in wordpress). It has hidden fields that are shown with jQuery.

I just completed a jsFiddle that works fine: http://jsfiddle.net/Mangomeat/SfTyG/1/

My javascript:

$(document.body).click(function () {
    $("div:hidden:first").fadeIn("slow");
  });

But when I put the jQuery function into my wordpress test page, I can't get it to work.

http://libra-frisk.com/uberMenuTest/?page_id=84#


原文:https://stackoverflow.com/questions/13159372
更新时间:2022-03-29 20:03

最满意答案

未能升级VS2015的nuget

这个问题应该是核心visual studio可扩展性中的一个错误或问题。 这不是NuGet特定的问题。 它通常与诸如反病毒或加密服务等相关 。 我想在这里提供一些故障排除:

  • 以管理员身份登录到计算机,并使用管理员启动Visual Studio。
  • 检查您的计算机是否安装了McAfee Endpoint Encryption full-disk encryption product ,而不是防病毒软件。 如果是,则应该从全盘加密中排除devenv.exeVSIXInstaller.exe

    这里有一个注册表片段,告诉McAfee Endpoint Encryption排除这些文件。 一旦你这样做,重新启动PC: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\MfeEEFF\ExemptedProcesses] "1"="devenv.exe" "2"="VSIXInstaller.exe"

    有关详细信息,请查看SO上相同问题的答案

  • 关闭Visual Studio并删除包含Nuget副本的C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions中的所有文件夹

    1. 关闭Visual Studio的所有实例。

    2. 转到您的全局Visual Studio扩展文件夹。 NuGet不会安装在您的每个用户文件夹中; 相反,你会在Program Files中看到它。 类似于:C:\ Program Files(x86)\ Microsoft Visual Studio 11.0 \ Common7 \ IDE \ Extensions

    3. 查看该文件夹。 你会看到很多随机命名的文件夹,比如“sdjfksiov.djd”等等。 大多数(如果不是全部的话)是NuGet。 您需要知道哪些是NuGet,哪些不是,特别是如果您安装了其他扩展。 (你可以知道它是否是NuGet,因为它里面会有一堆NuGet。* .dll文件,如果你没有看到NuGet的东西,那么你需要保留它。)

    4. 将该扩展名文件夹重命名为:C:\ Program Files(x86)\ Microsoft Visual Studio 11.0 \ Common7 \ IDE \ Extensions_RENAMED

    5. 直接从Visual Studio扩展库下载NuGet。

    6. 执行刚刚下载的下载的NuGet.Tools.vsix文件。 不要通过Visual Studio来完成。 只需双击.vsix文件即可进行安装。

    7. NuGet应该成功安装。 作为安装的一部分,它将再次创建扩展文件夹,因此您将再次看到C:\ Program Files文件(x86)\ Microsoft Visual Studio 11.0 \ Common7 \ IDE \ Extensions

    8. 打开重命名的扩展文件夹,将所有非NuGet扩展名移到新的扩展文件夹中。

    9. 现在打开Visual Studio。 你应该看到新版本的NuGet已经安装并正在工作。

    10. 一旦你验证了所有的工作,你可以删除重命名的扩展文件夹

希望这可以给你一些帮助。


failed to upgrade nuget for VS2015

This issue should be a bug or issue in the core visual studio extensibility. It is not a NuGet specific issue. It is generally tied to things like anti virus or encryption services. I would like provide some troubleshootings here:

  • Log in to your computer as an administrator and start Visual Studio with administrator.
  • Check if your computer has a McAfee Endpoint Encryption full-disk encryption product installed, not the antivirus. If yes, you should exclude devenv.exe and VSIXInstaller.exe from full-disk encryption.

    Here’s a registry snippet to tell McAfee Endpoint Encryption to exclude these files. Once you do that, reboot PC: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\MfeEEFF\ExemptedProcesses] "1"="devenv.exe" "2"="VSIXInstaller.exe"

    For the detail info, please check the answer for the same issue on SO.

  • Close visual studio and delete all the folders in C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions that contain a copy of Nuget

    1. Close all instances of Visual Studio.

    2. Go to your global Visual Studio extensions folder. NuGet doesn’t install in your per-user folder; instead, you’ll see it in Program Files. Something like: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions

    3. Look in that folder. You will see a lot of randomly named folders like “sdjfksiov.djd” and so on. Most (if not all) of those are NuGet. You’ll want to be aware of which ones are NuGet and which ones aren’t, particularly if you have other extensions installed. (You can tell if it's NuGet because it'll have a bunch of NuGet.*.dll files in there. If you don't see NuGet stuff in there, you'll want to keep it.)

    4. Rename that Extensions folder to something like: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions_RENAMED

    5. Download NuGet directly from the Visual Studio extension gallery.

    6. Execute the downloaded NuGet.Tools.vsix file you just downloaded. Don’t do it through Visual Studio. Just double-click the .vsix file to install it.

    7. NuGet should successfully install. As part of that install, it will create the Extensions folder again, so you will once again see C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions

    8. Open up your renamed extensions folder and move all of the non-NuGet extensions into the new Extensions folder.

    9. Now open Visual Studio. You should see the new version of NuGet installed and working.

    10. You can delete that renamed Extensions folder once you’ve verified everything is working

Hope this can give you some help.

相关问答

更多
  • 现在看起来问题已经解决,请参阅http://blogs.msdn.com/b/maoni/archive/2015/08/12/gen2-free-list-changes-in-clr-4-6-gc的.aspx It looks like the problem has been addressed now, see http://blogs.msdn.com/b/maoni/archive/2015/08/12/gen2-free-list-changes-in-clr-4-6-gc.aspx
  • 打开程序包管理器控制台并使用Update-Package cmd-let更新所有程序包。 Open the Package Manager Console and use the Update-Package cmd-let to update all packages.
  • 这已在我们的“已知问题”页面上记录: http : //docs.nuget.org/docs/reference/known-issues 有两个原因可能会遇到这个问题。 您已经安装了NuGet的未签名或错误签名的版本。 例如,如果您抓住了我们的持续集成服务器(http://ci.nuget.org/)或者安装了我们之前的CodePlex版本。 另外还有一个问题影响到Windows XP或Windows 2003的某些用户看来,机器上的证书颁发机构不正确地将证书报告为无效。 我们还在调查这个问题。 Thi ...
  • 看起来这是在NuGet Visual Studio 2015扩展的版本3.2 RC中修复 - 至少对我来说,更新到这个版本。 关于这个问题的讨论可以在这里找到,建议从NuGet 3.1更新到3.2 RC。 更新 扩展版本3.2现已发布(在此找到),其中包括此修复程序。 澄清 要做到这一点,你需要两件事情: 一个包含disableSourceControlIntegration设置的nuget.config文件 NuGet Visual Studio 2015扩展版的一个版本,它遵循disableSource ...
  • 未能升级VS2015的nuget 这个问题应该是核心visual studio可扩展性中的一个错误或问题。 这不是NuGet特定的问题。 它通常与诸如反病毒或加密服务等相关 。 我想在这里提供一些故障排除: 以管理员身份登录到计算机,并使用管理员启动Visual Studio。 检查您的计算机是否安装了McAfee Endpoint Encryption full-disk encryption product ,而不是防病毒软件。 如果是,则应该从全盘加密中排除devenv.exe和VSIXInstall ...
  • 好。 事实证明,有一种似乎有效的兼容模式,并且允许我不更改加密。 您所要做的就是将compatibilityMode =“Framework20SP2”添加到web.config中的machineKey,如下所示: 希望这可以帮助其他遇到此问题的人。 Ok. It turns out ...
  • NuGet命令行以NuGet包的形式提供。 与任何其他NuGet包一样,您可以使用Package Manager控制台中的-Version开关获取特定版本。 要获取NuGet命令行工具的v1.4.2,您应该从程序包管理器控制台执行以下PowerShell脚本: Install-Package Nuget.CommandLine -Version 1.4.20615.182 The NuGet Command Line is available as a NuGet package. Just like wi ...
  • 找到了解决方法。 通过NuGet安装实体框架; 现在安装System.Data.SQLite - 它将正确安装。 虽然没有直接的解决方案 - 很可能是NuGet中的一个错误。 Found a workaround. Install Entity Framework via NuGet; Now install System.Data.SQLite - it will install correctly. No direct solution though - most likely it's a bug i ...
  • 在这里回答这个问题:不,这不是它应该如何运作; 不会从.csproj文件中的XML中删除引用元素。 To answer the question here: no, this is not how it should work; reference elements are not removed from the XML in the .csproj file.
  • 由于使用了需要管理员权限的本地IIS实例,我一直在运行VS作为管理员,magicandre1981指出NuGet.config需要写权限,所以我给普通用户提供了对该文件夹的完全访问权限(我相信NuGet.config文件是因此在管理员上下文中生成,因此缺少正常的用户权限)。 这本身并没有解决问题,但之后进行了Nuget Package Restore ,导致NuGet feed再次显示。 I had been running VS as administrator due to using a local ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)