option 1 « Development « jQuery Q&A

Home
jQuery Q&A
1.addClass
2.alert
3.array
4.attribute
5.browser
6.callback
7.clone
8.Cookie
9.Date
10.Development
11.document
12.dom
13.element
14.filter
15.Firefox
16.flash
17.format
18.html
19.input
20.internet explorer
21.json
22.mootools
23.page
24.performance
25.regex
26.safari
27.selector
28.setTimeout
29.String
30.table
31.Text
32.trigger
33.URL
34.video
35.xml
jQuery Q&A » Development » option 1 

1. JQuery error option in $.ajax utility    stackoverflow.com

The documentation indicates that the error: option function will make available: XHR instance, a status message string (in this case always error) and an optional exception object returned from the XHR ...

2. Accessing options in jQuery Datapicker    stackoverflow.com

How can I access options that I set in a jQuery Datepicker?

$("#testDatePicker").datepicker({
    minDate: new Date(2005, 0, 26),
    showOn: 'button',
    buttonImage: 'js/themes/default/images/calendar.gif',
  ...

3. How do I add options to a DropDownList using jQuery?    stackoverflow.com

As the question says, how do I add a new option to a DropDownList using jQuery? Thanks

4. What are my options to get all the necessary data using javascript and/or jQuery for the following scenario?    stackoverflow.com

I'm not sure how to best word this, so I'll give it a shot and hopefully revise it as it comes to me. Using javascript/jQuery, let's say I want to get some ...

5. how to set radio option checked onload with jQuery    stackoverflow.com

How to set radio option checked onload with jQuery? Need to check if no default is set and then set a default

6. How do I add options to a DropDownList using jQuery (ordered)?    stackoverflow.com

This question is similar to this one http://stackoverflow.com/questions/317095/how-do-i-add-options-to-a-dropdownlist-using-jquery but I would like to add it in an ordered fashion. The example in the other question just adds it to the end ...

7. What are the best options for a Java/jQuery polling interface?    stackoverflow.com

I am building an application in Java (with a jQuery frontend) that needs to talk to a third party application. it needs to update the interface every two seconds at the ...

8. Options show step by step based on users' choices    stackoverflow.com

I want to build a survey which has about 20 questions. All questions are in the same page. The structure of whole survey is like the tree structure. Initially, only one question is ...

9. Retrieve and display value of radio options via jQuery    stackoverflow.com

I'm trying to have an alert box show the value of the radio option I have selected. HTML:

<input type="radio" name="sex" value="Male" /> Male<br />
<input type="radio" name="sex" value="Female" /> Female
When I choose one ...

10. load options via. jquery    stackoverflow.com

I'm trying to load some data via. jquery

 $get_desc = "SELECT tekst_id,overskrift FROM rr_tekster WHERE beskrivelse_id = '". $_POST['beskrivelse_id'] ."' AND status = 1";
 $select = mysql_query($get_desc)or die(mysql_error());
 while($row_option = ...

11. Jquery: Why am I getting an OPTIONS request insted of a GET request?    stackoverflow.com

With this code http://paulisageek.com/tmp/options.html :

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js" type="text/javascript"></script>
<script>
$.get("http://metaward.com/import/http://metaward.com/u/ptarjan", function(data) {
     alert(data);
});
</script>
in Firefox 3.5 on Vista it does an OPTIONS request to that url, and then ...

12. Create     stackoverflow.com

I'd like to build s on the fly in a box based on an AJAX response; i.e. if the responseText is 3, I'd like to build 3 options:

<option value="1">1</option>
<option value="2">2</option>
<option ...

13. ajaxForm(options) what should be passed to the options?    stackoverflow.com

$(document).ready(function() { 
    var options = { 
        target:        '#output1',   // target ...

14. jQuery ajax() option - xhr    stackoverflow.com

In jQuery ajax function there is xhr option. Does someone know more details, usability or sample usage of this option?

15. jQuery: I get OPTIONS request instead of GET    stackoverflow.com

I am using simple jQuery

$.get( .... );
Here instead of getting GET response I get OPTIONS.( checked in firebug Net) Same code is working fine in Safari. Looks like some problem with Firefox. Any ...

16. How to get all option values with jQuery?    stackoverflow.com

<select>
<option>test</option>
<option>test1</option>
</select>
In fact I'm going to retrieve the innertext of <option>,but these two jobs are similar.

17. Superfish to open an option "onInit"    stackoverflow.com

On some of my pages I want Superfish (menu plugin) to unfold one of the first level options by default as soon as the page opens. I attributed this option ul ...

18. How can I find an option with a specific value using jQuery.find?    stackoverflow.com

var prefix = document.getElementById("actionsum").value;
$('#actionsum')
    .find('option')
    .remove()
    .end()
    .append('<option value=""> </option>')
    .val('')
    .append('<option value="A0">A0</option>')
 ...

19. Terminology for jquery options objects    stackoverflow.com

I am writing an email to some colleagues and trying to describe the pattern that jQuery uses to pass parameters, which is to encapsulate them in an "options object", like so:

var ...

20.     stackoverflow.com

I have a div that is being used as a dialog with jQuery's .dialog(). This div has a select box with options. The options the user has already selected are displayed ...

21. What are the returned parameters in the jQuery ajax success option?    stackoverflow.com

jQuery documentation indicates the following is returned:

success(data, textStatus, XMLHttpRequest)Function A function to be called if the request succeeds. The function gets passed ...

22. Auto-suggest Technologies and Options    stackoverflow.com

I would like to integrate auto-suggest on my website. Which option should I pursue? Are there any advantages with going the jQuery route vs the Javascript route? What about disadvantages? What about ...

23. Jquery error handling options    stackoverflow.com

I want to throw an error message if user doesn't input any value for a particular field. I am using blur event. I don't want to use ALERT function for throwing ...

24. JQuery Delegate and using traveral options in function    stackoverflow.com

I am having trouble figuring out how to use the JQuery delegate function to do what I require. Basically, I need to allow users to add Panels (i.e. divs) to ...

25. jQuery global variable best practice & options?    stackoverflow.com

Currently I am working on a legacy web page that uses a ton of javascript, jquery, microsoft client javascript, and other libraries. The bottom line - I cannot rewrite the ...

26. How can I use a variable as a jQuery option value?    stackoverflow.com

I currently have jQuery code that looks like this:

if ($.url.param("s") == "error") {
    $.gritter.add({
        title: 'Error!',
      ...

27. JQuery SelectList Option Changed doesn't refresh    stackoverflow.com

I have this select list:

<select url="/Admin/SubCategories" name="TopParentId" id="ParentList">
  <option value="">Please select a parent category</option>
  <option value="1" selected="selected">New Store</option>
  <option value="2">Extensions</option>
  <option value="3">Remodel</option>
  <option value="4">Bespoke Signage</option>
  ...

28. jquery accessibility option    stackoverflow.com

what do you guys think of this code to help with some lazy people out there :)

$('a').each(function (i,n){
    $title = $(n).attr('title');
    if(!$title){
   ...

29. In Javascript, what is an options object?    stackoverflow.com

Now I have googling this a lot, but I cant seem to find what I am looking for. I am not talking about the options object that does drop down ...

30. Add close option to Jquery Color Picker    stackoverflow.com

Im using the color picker here: http://blog.meta100.com/post/600571131/mcolorpicker Im using code shown in example 3. What I want to do is allow the user to close the colorPicker DIV if ...

31. How to change option value with Jquery?    stackoverflow.com

I am looking for a way to change the option value from a select tag when users click on a link. For example I have a select option html:

<select> <option value="0">Please Select</option> ...

32. jquery add/remove with greyout option    stackoverflow.com

How can I undo the grey-out if the select row was removed? Also, when there are several rows added, I want to remove only the row corresponding to that "Remove" button ...

33. edit the first option name    stackoverflow.com

I have the following code which I do not have access to. What I want to do is add some text into the first option which is now empty. Text such ...

34. Disable other options (jQuery)    stackoverflow.com

<p><label><input type="radio" name="group1" /> one</label></p>
<p><label><input type="radio" name="group1" /> two</label></p>
<p><label><input type="radio" name="group1" /> three</label></p>
When one of the radio input is selected, I'd like to completely disable others. I tried with the jquery ...

35. jQuery check radio option not checking    stackoverflow.com

I can't get the radio options to check on my page. They won't check Yes or No.

              ...

36. JQuery making ajax options dynamic    stackoverflow.com

right now in my $.ajax({ ..}); call I have the following option:

data: { param0: param0, param1: param1}
Say I want the number of parameters to by dynamic (based on a variable passed ...

37. jquery, options value    stackoverflow.com

whats wrong with my code? Why i don't get options value(in my sample - 1)?

<script type="text/javascript">
$(document).ready(function(){
    if ($("#number option:selected").length > 0)
    {   
  ...

38. jquery: why $.get send OPTION packet?    stackoverflow.com

$.get('http://localhost/a.bb?cmd=<abc></abc>', function(data) {
   alert('result comes back.');
   $('.result').html(data);
  });
);
Above is the code I want send to server, why jquery send OPTION for me? I want GET method. Thanks. ...

39. For what server error code does the jquery ajax 'error' option stand for?    stackoverflow.com

Can someone tell me for what server request code does the 'error' option in jquery ajax ($.ajax) stand for? Because I want to handle the 400 server error, but I can't seem ...

40. jquery theme settings options    stackoverflow.com

Creating this theme, I'm pretty new to jquery and struggling as usual. Just watched this tutorial and decided to have a shot at making my own theme settings to simplify customization. This is ...

41. JS/jQuery: Popupbox with options    stackoverflow.com

Yes. I am using normal confirm boxes for my "did you mean firstname lastname?" with yes/no I also have "Who of these did you mean:" and i want a popup/dialog for this ...

42. How provide several options (not just one) after initialization?    stackoverflow.com

Can several options (after init) be provided at once?

$('<p>Dialog</p>').dialog().parent().draggable( "option", "containment", false );
If I also want scroll: false, how do I do it?

43. Loop through options in javascript object    stackoverflow.com

I have an javascript object that contains a select list. I'd like to loop through all options within the select. I'm trying the following: $(this+' .form-select option').each(function() { ...

44. Ampersand (&) character inside a value of jQuery AJAX request data option    stackoverflow.com

I am performing asynchronous HTTP (Ajax) requests via jQuery with the basic $.ajax(). The code looks like the following:

$("textarea").blur(function(){
   var thisId = $(this).attr("id");
   var thisValue = $(this).val();

 ...

45. next option jquery    stackoverflow.com

trying to select next option drop down list by using a id identifier, but to no avail here is the code

$('#chapter option:selected', 'select').removeAttr('selected').next('option').attr('selected', 'selected')

46. JQuery POST request transforming into OPTIONS. Why?    stackoverflow.com

I explicitly specify a POST and I don't see the post data in the Request and more over specifies it has a OPTIONS. The response should be a HTML specifying matching users ...

47. How to prevent overwriting jQuery's $.ajaxSetup() options?    stackoverflow.com

I've got a question concerning ajaxSetup. When the script starts, I define the following:

$.ajaxSetup({
  success: function(data) {
    example(); 
  }
});
Up to here everything works fine. The ...

48. What is the purpose of data option in jQuery.ajax() function?    stackoverflow.com

$.ajax({
type:"post",
data:"name="+name+"&article="+article",
what is the two name mean in the part of data?

49. Dynamically set jQuery object option/property    stackoverflow.com

To be sure I'm not messing up terms, here is the code example. I'm using jQuery Nivoslider and I want to be able to change the used effect(s) when ...

50. JQuery Widget - Pass options by reference    stackoverflow.com

I have two JQuery widgets, one is a sort of 'main' widget, the other could be considered a child. The child handles gathering specific data which is required by the main. ...

51. jquery tmpl default options    stackoverflow.com

I have a series of helper functions to do formatting, etc inside jQuery.tmpl templates. The documentation suggests this can be passed in as the options argument in the template function. ...

52. share option with new version of tweeter    stackoverflow.com

The tweeter sharing option on my site with twitter old version is working fine. but with new version it puts plus sign between words. I already used Server.Urlencode method to encode ...

53. Yii CJuiTabs options - how do they work?    stackoverflow.com

jQuery UI Tabs - Content via Ajax shows what the Ajax tabs should look like:

<li><a href="ajax/content1.html">Tab 1</a></li>
<li><a href="ajax/content2.html">Tab 2</a></li>
But this Yii example code is for one Ajax ...

54. manipulating jquery options on-the-fly    stackoverflow.com

i use a jquery plugin and want the user to be able to manipulate an option (LENGTH parameter) him/her-self.

$(document).ready(function() {           ...

55. Do I have to use an anonymous function with jquery's ajax complete option?    stackoverflow.com

Why can't I pass a named function to the jquery ajax complete option. Here's my code:

    $.ajax({
        type: 'post',
   ...

56. How can I situate specified     stackoverflow.com

I have this html code:

<select name="0-gender" id="id_0-gender">
    <option value="0">Select gender:</option>
    <option value="1">Woman</option>
    <option value="2">Man</option>
</select>
<option value="0"> is because of this:
$("#id_0-gender").prepend("<option value='0'></option>")
  ...

57. nyroModal Correct Use Of Options    stackoverflow.com

I'm very new to jQuery and just started trying nyroModal tonight. Trying to create some simple popups. I'm working with a popup on page load at the moment. The code I'm ...

58. How to: Swap options with jQuery using Address    stackoverflow.com

I am looking for a way to swap to option values between them. I made a simple fiddle which would swap inputs but when I change it to select options it doesn't ...

59. nyroModal Size Options    stackoverflow.com

I am trying to get a nyroModal popup with a fixed size. I have tried the following:

$.nmManual('message.html', {
    modal: true,
    w: 400,
    ...

60. jQuery replace space with _ in options class    stackoverflow.com

I have several options classes that have spaces

<option value="Divers RF" class="Divers RF">Divers RF</option>
<option value="France Bleu" class="France Bleu">France Bleu</option>
How can i replace the space with a _ in the class? so the result ...

61. Getting attr of an option in jQuery    stackoverflow.com

I have a form like this:

<select name="category" id="cat">
<option value="cat1" id="hello">Category1</option>
<option value="cat2" id="hello2">Category2</option>
</select>
if i use $('#cat').val() with change function in #cat id , it displays values(cat1 or cat2). i want to learn ...

62. Does Prototype has a no conflict option like jQuery?    stackoverflow.com

I have tried Googling this but it only ever comes up with the jQuery noconflict option. I would use this but my site is very jQuery heavy and it will take quite ...

63. Copying options and optiongroups with jQuery    stackoverflow.com

I have a found a great jQuery snippet that allows copying of an option from one selector to another and back. I would like to modify it to add option groups and ...

64. Difference between $.ajax({cache:false}); and $.ajaxSetup({cache:false}); in jQuery and which one is best option    stackoverflow.com

I am begginer in ajax and would like to know the difference between $.ajax({cache:false}); and $.ajaxSetup({cache:false}); in jQuery and which one is best option?

65. Copy options w/ option groups    stackoverflow.com

I need help debugging a jQuery functionality that allows adding options from one selector to another and removing them back from second selector. It works fine on load, when original copying is ...

66. JQuery ajax data option "key" value cannot be created from a passed variable, how can I do this?    stackoverflow.com

The following works perfectly until I try to replace the hard coded "service_id" with the passed string variable id_name. Is there a way to pass a variable into this part of the ...

67. Request method is OPTIONS instead of post (existing StackExchange post doens't help)    stackoverflow.com

Before you say there's another post ( jQuery $.ajax(), $.post sending "OPTIONS" as REQUEST_METHOD in Firefox ), yeah, it doens't help at all, so.. I am using Chrome dev latest version ...

68. Variable Options without Variables?    stackoverflow.com

<script type="text/javascript"> 
    clBoxActive = true;
    clBoxTrigger = "cl-trigger";
    clBoxTriggerType = "#";
    clBoxClass = "overlay-box";
    clEffectIn ...

69. I don't understand this function(options)    stackoverflow.com

I don't understand this, if I have image slider and image preloader

jQuery.fn.awShowcase = function(options);  //slider
$.fn.preloader = function(options); // preloader
They don't work on the same page because the function is ...

70. Weighing Cross Domain Javascript Options    stackoverflow.com

I've got some intranet scripting I am trying to go cross domain with. I'm using jQuery 1.7 and trying to weigh my options. There are 3 options I know of.

  1. JSONP
  2. Setting Access-Control-Allow-Origin ...

71. jQuery function fails after trying to send the index of an     stackoverflow.com

I am having a problem accessing the UPDATE function after sending an index greater than 6. I'm not sure why this happens, it works fine up until that point. Below is ...

72. JQuery In action - Data Access Options    coderanch.com

Thanks for your responses. I've used AJAX to call a servlets and returned formatted data with html tags. I guess this is what you are talking about with HTML fragments. I did it that way because it was simple and avoided parsing the response in the client code but I am wondering if this is bad way to do things. The ...

73. syntax for an if statement inside an ajax data: option    forum.jquery.com

syntax for an if statement inside an ajax data: option in Getting Started 8 months ago My ajax data option in an Autocomplete works. The whole code section works. Then when I put an if statement into the data: option, I get a Firebug error saying - missing: after property id - and the page fails. ...

74. option added uisng jquery not recognised by $_POST    forum.jquery.com

option added uisng jquery not recognised by $_POST in Using jQuery 5 months ago First of all, my english isn't good and if this question has already been asked sorry, i can't find.My problem, i have a form with a select multiple, and the contents of the select box changes dynamically, but how do i retrive ...

75. bind or live with option    forum.jquery.com

76. Full Ajax Options Hash. Does anyone knows what is this? Please, is Urgent. Thank You.    forum.jquery.com

$('select.User').cascade('select.Project', { ajax: { url: '/cms/project/getusers/' + $('select.Project').val(), data: "" }, template: function (item) { return ""; }, match: function (selectedValue) { return this.when == selectedValue; } });

77. Updating a common     forum.jquery.com

78. A question about one of the options ability    forum.jquery.com

I was working with jquery and wanted to use it to call items from a database as soon as the page loads. I seem to be running into a problem trying to make a specific page appear based on the link selected by the user. The links are drawn up as titles from the database. The problem is ...

79. option value=3 doesn't get appended    forum.jquery.com

80. Can you add options in a particular order with append()?    forum.jquery.com

I'm working on a project where I add or remove options in a select list based on what checkboxes have been checked. So far I can remove them with detach() and add them with append() but is there a way to add them in a particular order. I was originally just going to hide and show the options but as always ...

82. jQuery 1.3.2 update to 1.4.2 : ifModified option doesn't still work.    forum.jquery.com

Thanks for you reply Dominique,I tried to use your sample, but didn't work too, the script continue to append my content in a continuous loop.But works great with 1.3.2 version by the way.So I can't use de unwrap function (add in the 1.4 version) and ifModified (which works good with the 1.3.2 version).I join to this post my all files, in ...

84. option "exception"    forum.jquery.com

85. [jQuery] what does options mean ???    forum.jquery.com

I am looking through some previous made code and I notice a special variblecalled options. I suppose it special because my html editor gives it apurple color that stands out as if its a predefined varible. the code lookslike something below $('#begin').click(function(){ $('#log').val('') $('#display').val('') log('Started recording: ' + duration + 'ms') $.Events({ duration: duration }, function(){ $('#display').val(this.exportJSON()) ...

86. jQuery Multiselect with 2500+ options    forum.jquery.com

I'm really not sure what you could do in this case. 2500 is an awfully large number of options for a select. I really don't know that it'd work, but you could try "batching" the select options - that is, running your code on 50 or 100 at a time, looping through until they're done. Again, not sure if that'd have ...

87. .ajax wierd behavior with data option    forum.jquery.com

Hello, I am an intermediate user of jquery and I am experiencing a really weird behavior with a page on my site when i try to attach an event handler to a button. The functionality of the button is to make a request with .ajax. As long as I do not include the data { key: value } option everything "works" ...

89. [jQuery] Clear (cancel) Option    forum.jquery.com

91. [jQuery] How to use getResponseHeader using .ajax request with xhr option    forum.jquery.com

The .ajax() request has an option called 'xhr'. I am trying to grabthe filesize of a file (html) being requested with ajax. I think thatthe method used with XHR is getResponseHeader. How would I implementthis into the 'xhr' option?I have tried several ways, but all gave me errors on Firebug, such asthat getResponseHeader was not defined.$.ajax({......xhr: function(){alert( this.getResponseHeader('Content-Length'));},...ectI ...

92. [jQuery] How to get option's position    forum.jquery.com

93. [jQuery] serialScroll option : start --> no effect    forum.jquery.com

[jQuery] serialScroll option : start --> no effect in Using jQuery 2 years ago We're using the serialScroll method and using some of the options.Only the option start has no effect.We want to scroll at the start to element 2 and not to the defaultposition 0Suggestions? $('#technical').serialScroll({ ...

95. [jQuery] Overrridden $.ajaxSetup() options    forum.jquery.com

96. [Sortable] placeholder option    forum.jquery.com

ul { margin : 0; padding : 0; list-style-type : none; } li { border : 1px solid black; } .vertical { margin-bottom : 5px; } .horizontal { float : left; margin-right : 5px; } .placeholder_sort { ...

97. 'data(...).options' is null or not an object    forum.jquery.com

'data(...).options' is null or not an object in Using jQuery 2 years ago Hello, I got a strange message on IE7 (but no error on firefox and IE6): line: 23 'data(...).options' is null or not an object Does any one has any clue about this problem? I'm executing the following code: ...

98. [jQuery] Add option to combo    forum.jquery.com

99. [jQuery] AJAX File Upload Options    forum.jquery.com