Hi All,
I am using the following code to disable the anchor tag.Can anyone tell me how to enable it using jquery.
Code:
$("#rightt").attr("disabled", "disabled");
Geetha
Not sure if you can do this, but I want to select the first of two classes of an element with jQuery and return it's first class only.
<div class="module blue">
I want to return 'module'.
tried this:
var state = $('body').attr('class').first();
but none of that seems to work, thanks for any advice.
Hi folks,
this might be quite simple, but I must say I'm a bit confused on this topic.
I'm writing code based on two popular libraries:
jQuery
underscore.js
I am just wondering what would be the best way to isolate the code and prevent conflicts and how to merge it with its dependencies.
By merging I mean putting them within the same file. :)
I hope I'm not asking something which is too basic.
...and a last thing
MERRY CHRISTMAS EVERYONE! =D
Is there any way of creating a combo box (<select>) with a size of 1? All the examples I can find allow for multiple selects but with a number of options visible at any one time. If this cannot be accomplished with bog standard HTML is it possible in a JS library such as JQuery?
I used JQuery.serializeArray() on a form to create an array of objects on a GreaseMonkey application:
[
{
name: a
value: 1
},
{
name: b
value: 2
},
{
name: c
value: 3
},
{
name: d
value: 4
},
{
name: e
value: 5
}
]
I need to use GM_xmlhttpRequest to serve these fields back to a server side application. What is the best way to return these fields?
Thanks in advance,
D
hey there,
i want to implement a little feautre with jquery, where i want to catch the event that occures when the user clicks on the "Back" button of his browser, to get to the last page.
but how?
didn't find any working solutions :-(
I used the same software used here http://us.gn.bartal.org/ to create a fixed width/height treemap in HTML + CSS.
I would like to make it elastic by having a JavaScript function to convert all pixels absolute positions and sizes to percentages.
How would you suggest to proceed? Is there some jQuery/Prototype/Dojo magic that I can exploit?
Example website is http://www.wikihow.com/Main-Page, check the "Recent Changes" heading on the right side.
I am really amazed with the implementation of such scroll bars.
Google also uses something very similar to this.
Can someone give me some idea how to do this using jquery.
i have following format of json in which i want to asscess 0.4 , kem , 2 , 2000 values
but it seems it doesn't have name index so how one can access it in jquery.
when i paste following code in json viewer then i am getting numerical index for 0.4 , kem , 2
"td": [
{
"@attributes": {
"class": "odd"
},
"span": [
"3",
"7"
]
},
"0.4",
"Kem",
"24\/04\/2010",
"2000",
"2",
"14000",
"Good",
"Buckley",
"56.0",
"2:05.32",
"36.65",
"54.5"
]
}
I am really amazed with the implementation of such scroll bars. Google also uses something very similar to this. Can someone give me some idea how to do this using jquery.
I have 11 checkboxes with individual ids inside a modal popup.I want to have a hyperlink called SelectAll,by clicking on which every checkbox got checked.I want this to be done by javascript/jquery
Hey guys. If you haven't already seen, Google has the ability to add a custom background image (for better or worse) and I was wondering how to achieve the same fade-in-on-load effect using jQuery.
Any ideas?
Im beginner and im experimenting on a website with fixed and relative postions, what i want to do is to stop bottom part when the two bottom lines(div .top_divider_line) touches nav menu(div .top_holder) here is the preview from site where im stuck.
http://elexoj.com/test/
I think making it with jquery will be lot easier but i've no idea how to do it, i'll really appreciate your help.
Thank You!
i want to submit a form via ajax javascript to cakephp function.
cakephp function accepts $this-data, so i want to convert html form datas to cakephp function acceptable format i.e $this-data(array)...
how to do this in javascript(jquery)
Scrollbars get quite a bit of use in the site i'm working on and how they look on some OS's really doesn't fit with the design - especially if someone's running xp!
looking for a lightweight css / jquery method of custom styling my scrollbars?
I want to check server response in javascript. For example I have a server A which will host the script. On excuting the script it will check if the server B is responding or not. If yest continue other wise redirect to server C. Is this possible with Javascript/Jquery? If not what could be a possible solution in PHP?
Heya,
I am looking for a way to close a scripty2 dialog like this :
http://mir.aculo.us/stuff/scripty2-ui/test/functional/controls_dialog.html
From outside of the dialog (i.e. with firebug command line) but my javascript mojo is a bit limited and after 30 min of going around the DOM I cannot find a way. Any hints ?
NB : scripty2 is a rewrite of script.aculo.us which uses bits of Jquery UI.
Hello,
I need to find the string,decimal or boolean, byte value from jquery grid control,,
using extension methods,, can anybody tell me how to write extension methods to find string,decimal values?
thanks
Hello guys, I have an ajax form that saves a object in the database then return a Message like this:
return Json(new {Message = "Message!"},
JsonRequestBehavior.AllowGet);
We are ok here, but I don't know HOW I'll get this result in the view to display in a jQuery modal. My ajax form is like the following and I want to get the result on the OnSuccess method:
<%using (Ajax.BeginForm("Form", "Controller", new AjaxOptions() { OnSuccess = "MethodThatIWantToGetTheJson" }))
Any ideas?
I have some popup dialogs on my webpage, in each of this dialogs i have defined some click event with jquery :
$(".links_view").click(function(e){ //code });
But the problem is when i activate one this click event, it will be executed in each dialog...
I submit a (jsp) form to a Servlet A. Then I handle some logic which would make the submission either a success or a failure. I use jquery's ajaxForm() function to re-direct the user to a different jsp after the Servlet logic is executed. But before this redirection happens I need to show a javascript notification showing whether the submission was successful or not. Can someone tell me how can I do this?
Hello,
I would like a select list that does the following:
When the select list is open, display the list of descriptions.
When the user selects an item, the select list will close an only the value will be displayed.
The reason for this is to conserve space as the values will be much shorter. I'm hoping that there's an answer in jQuery.
Thanks.
I have an accordion side menu in my latest project that works in all modern browsers properly, apart from ie8.
In Ie8, using the menu and clicking results in random padding and margins to be added and sometimes disappear for no apparent reason. I can't find any bit of jquery code that would potentially cause this to happen which is a pain. Even more confusing is the fact that this doesn't happen in Ie7 =S
Can anyone here replicate this bug, and see what the problem is?
Project Demo to view in ie8
Hi everyone,
I am a begginer in JQuery and I want to make a simple matching quiz
so I used this code to create the qustions div and answers div
The Capital of KSA
The Capital of UK
The Capital of USA
Riyadh
London
Washington
I want to know after submit button is clicked if all accepted draggables are now dragged to the suitable droppables
I used this code to make the answers divs draggable and to make them accepted for their questions divs
$(function() {
$("#a3").draggable();
$("#q3").droppable({
accept: '#a3', });
});
your help will be appreciated :)