JavaScript Javascript bookmarklet outputting 'true' in Firefox instead of performing script

We are running a quick javascript function to fill out and save a form to quickly move forward in a workflow (for testing purposes). It's running fine in all browsers except for Firefox - and only on a couple people's machines.

javascript:!function(){$("#ruleDetailForm\\.authorizingStatutes").val("Test")}();

There is more to the script, but the above example results in the same issue. Both copying it into the URL bar or adding it as a bookmarklet results in a blank white page displaying 'true' instead of copying "Test" into the relevant field.

The same users have no issues using other browsers, and other people have had success with it working in Firefox. Firebug doesn't show anything useful, and they are on the most up-to-date version of Firefox.

Answer:1

I want to use jQuery's multiple selectors and set on() on them and then using "$(this)" implement something I need. This should look like this: $(".one, .two, .three").on("someEvent", function () { ...

I want to use jQuery's multiple selectors and set on() on them and then using "$(this)" implement something I need. This should look like this: $(".one, .two, .three").on("someEvent", function () { ...

  1. using this with arrow functions
  2. using this with jquery
  3. using this with a constructor
  4. using this with class jquery
  5. using this with javascript
  6. using this with typescript
  7. using this in java
  8. using this in a sentence
  9. using this in constructor c++
  10. using this in c#
  11. using this to start a sentence
  12. using this in node.js
  13. using this in html
  14. using this in parameter c#
  15. using this in past tense
  16. using this in javascript onclick
  17. using this in lambda java
  18. using this in javascript class
  19. using this in python
  20. using $ this in ajax jquery

when i am trying to write code for login with linkedin i am getting error like the below. Uncaught Error: You must specify a valid JavaScript API Domain as part of this key's configuration. Below is ...

when i am trying to write code for login with linkedin i am getting error like the below. Uncaught Error: You must specify a valid JavaScript API Domain as part of this key's configuration. Below is ...

In an article on browser plugin development, they use this code: window.browser = (function () { return window.msBrowser || window.browser || window.chrome; })(); Why would they use an ...

In an article on browser plugin development, they use this code: window.browser = (function () { return window.msBrowser || window.browser || window.chrome; })(); Why would they use an ...

Implementing something based on a pathetic documentation without no info nothing. The example is just this (7F02AAF7)H => (F7AA027F)H = -139853185 Let's say even if I convert 7F02AAF7 to ...

Implementing something based on a pathetic documentation without no info nothing. The example is just this (7F02AAF7)H => (F7AA027F)H = -139853185 Let's say even if I convert 7F02AAF7 to ...