I am trying to on click of a yes radio button to fire off a check on a checkbox. It is not working though.    $("#ctl00_ctl39_g_b36986cf_3dae_456d_938c_3e398e9272e8_ff111_ctl00_ctl00").click(function(){  $("#ctl00_ctl39_g_b36986cf_3dae_456d_938c_3e398e9272e8_ff101_ctl00_ctl02").check=true;   Am I missing something easy here?   Thanks
3314
I'd like to do something like this to tick a checkbox using jQuery:  $(".myCheckBox").checked(true);   or  $(".myCheckBox").selected(true);   Does such a thing exist?
36753
on the internet I read the following explanation: "we aren't using "no" to agree, we are using "no" to CONFIRM the negative statement."  Does that mean you confirm a negative question with no and agree with yes? That somehow seems strange to me?
75812
Chrome always quit when I click on the X button on a tab, without asking me anything!  Even when I close Chrome he do not alert me if I am willing to relay close it?   Many times it happened that accidentally I clicked on X button.
50535
How do you tell if caps lock is on using JavaScript?  One caveat though: I did google it and the best solution I could find was to attach an onkeypress event to every input, then check each time if the letter pressed was uppercase, and if it was, then check if shift was also held down. If it wasn't, therefore caps lock must be on. This feels really dirty and just... wasteful - surely there's a better way than this?
34565
I have a javascript routine that is performing actions on a group of checkboxes, but the final action I want to set the clicked checkbox to checked or unchecked based on if the user was checking the box or unchecking.  Unfortunately, every time I check for whether it is being checked or unchecked, it returns "on" indicating the user is always checking the box!  Any help would be appreciated, I've also included the javascript.  // Uncheck all the checkboxs with the same Tax Credit for (i=0; i&lt;arrChecks.length; i++) {     var attribute = arrChecks[i].getAttribute("xid")     if (attribute == elementName)     {         // if the current state is checked, unchecked and vice-versa         if (arrChecks[i].value == "on")   // &lt;-- This is always returning true, even if the box is being unchecked         {             arrChecks[i].checked = 1;         } else {             arrChecks[i].checked = 0;         }      } else {         arrChecks[i].checked = 0;     } }
47899
Semantically, the Yes/No buttons are roughly equivalent to the Ok/Cancel buttons, but in general what would you recommend to use? Should I always use Yes/No or always use Ok/Cancel? Or does it depend on the case?
15800
Well I am trying to submit a form by pressing enter but not displaying a submit button. I don't want to get into JavaScript if possible since I want everything to work on all browsers (the only JS way I know is with events).  Right now the form looks like this:  &lt;form name="loginBox" target="#here" method="post"&gt;     &lt;input name="username" type="text" /&gt;&lt;br /&gt;     &lt;input name="password" type="password" /&gt;     &lt;input type="submit" style="height: 0px; width: 0px; border: none; padding: 0px;" hidefocus="true" /&gt; &lt;/form&gt;   Which works pretty well. The submit button works when the user presses enter, and the button doesn't show in Firefox, IE, Safari, Opera and Chrome. However, I still don't like the solution since it is hard to know whether it will work on all platforms with all browsers.  Can anyone suggest a better method? Or is this about as good as it gets?
71146
I have a self made checkbox in a script. Now I want to create a hotkey in the Input manager to toggle it.  What I have done so far is to create a keymap item with wm.context_toggle. But I cannot get the Context Attribute to work. I grab the one from my script, the Python term in the tooltip. Which is WindowManager.deselect_bool and with that I get an error that the "Object has no attribute WindowManager".  What is the proper Context Attribute term here? Is it even possible to do it this way? If not, what is the proper way to assign a toggle hotkey for my custom checkbox?  Script:  import bpy from bpy.props import BoolProperty  class LayoutDemoPanel(bpy.types.Panel):     bl_label = "Demo Panel"     bl_space_type = 'VIEW_3D'     bl_region_type = 'UI'      def draw(self, context):         layout = self.layout          wm = context.window_manager # Our bool is in the windows_manager         layout.prop(wm, "deselect_bool") # Our checkbox  def register():     bpy.types.WindowManager.deselect_bool = bpy.props.BoolProperty(     name="Checkbox", description="A checkbox", default = False)     bpy.utils.register_module(__name__)  def unregister():     del bpy.types.WindowManager.deselect_bool # Unregister our flag when unregister.     bpy.utils.unregister_module(__name__)  if __name__ == "__main__":     register()
107565
How would I know through a script when the switch to edit mode happens? I need it for modal operator.  I was thinking on listening for 'TAB' event and checking obj.mode, but I hope there is a better way, for reasons like changed edit-mode shortcut or switching to edit-mode by script.
58651
Does anybody know if there is a way to evaluate a string containing boolean-logic at runtime? My logic, can only contain three operators and parenthesis (AND, OR, NOT). I can even make the string look like this: true &amp;&amp; false &amp;&amp; (true || !true)  I don't have the bandwidth to build a full-on parser... Any ideas?  PS: I saw some answers that pointed to the use of an API but I don't have access to use the Toolkit API in the environment this will get deployed.
45140
I want players to be able to click text to run an OP command even if that player is not an OP. For example something like:  Console: Do you want to enable Fly? [If you do, Please click here]  *Player1 clicks that text*  Console: /fly Player1   Is something like this possible?
109837
I am having trouble using apex:selectradio because of 508 compliance issues. The selectradio is creating html table tags with role="presentation" and the tool my client is using treats it as a layout table and not data table and fails to read the labels for the radio button.   The solution I have come up with is to use input type radio and pass the values to to controller, but I cannot fire submitSatisfactionComment method.  Here is my code.  VisualForce Page:  &lt;input type="radio" onclick="satisfactionComment"  name="satisfaction" value="1"&gt; {!$Label.One}         &lt;apex:actionFunction name="satisfactionComment" action="{!ctrl.submitSatisfactionComment}" rerender="myPanel"/&gt;     &lt;/input&gt; &lt;input type="radio" onclick="satisfactionComment"  name="satisfaction" value="2"&gt; {!$Label.Two}         &lt;apex:actionFunction name="satisfactionComment" action="{!ctrl.submitSatisfactionComment}" rerender="myPanel"/&gt;     &lt;/input&gt;   Apex Code:  public PageReference submitSatisfactionComment() {     //do something here with the selected value of the radio button     return null; }
85862
This page does it the way I want it to:   But I want to find a better way using jQuery, can anyone point me to a good script that uses jQuery to accomplish this?
112
I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.
36777
What is the difference between == and === in JavaScript?  I have also seen != and !== operators.  Are there more such operators?
104473
Over the time I've been able to vote for closure on SO, I've gotten into the habit of clicking on the reason itself in order to select the radio button corresponding to it. Since the reasons have changed, there are also now links in the middle of the text, which I also happen to accidentally keep clicking on. More annoyingly, these links don't open in a new tab so I have to click back and redo it. This happens most often with the "FAQ" link in the off-topic dialog, which is right there in the top left corner where I normally click.        Basically, those pieces of text now have two functions. One function of it is selecting the corresponding radio button and the other function is loading a new page. Obviously loading the new page trumps simple selection.  This has become even more painful now with the new off-topic messages, where a large portion of the message is a link:        A simple feature request: can the vote-to-close dialog itself not render the links?
50481
In c#, how can I check to see if a link button has been clicked in the page load method?   I need to know if it was clicked before the click event is fired.