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
I'm keen to test out html offline storage and caching with a view to developing a prototype to show off the offline web application capabilities of html5.
I've found some webkit-specific samples, but I'm battling to find any decent code samples that even work at all in Firefox 3.6
For a sample, I'd be happy with something that works with the following:
Our company uses jquery extensively so I'd prefer samples that use that library or pure javascript.
It should at least work on firefox (3.6+ is fine)
Can anyone point me to some links that provide some guidance and code samples?
Hi,
with jquery, or with simple just javascript, I want to populate a 2nd dropdown from the choice of the first dropdown.
The value of the first dropdown is the condition to get rows for the second dropdown.
How does the onChange event look like?
I've been fighting with jQuery all night and getting quite frustrated here, so forgive me if the answer was staring me in the face.
I have a grid of 15 images contained within a <div>, and when I click on one of them, I want it to expand to three times its original size of 150x105 and overlap the rest. I've got the expanding down, but the overlapping isn't quite working.
My current HTML:
<div id="image-grid">
<img src="images/after-pictures/1.jpg" class="igc1" />
<img src="images/after-pictures/2.jpg" class="igc2" />
<img src="images/after-pictures/3.jpg" class="igc3" />
<img src="images/after-pictures/4.jpg" class="igc4" />
<img src="images/after-pictures/5.jpg" class="igc5" />
<img src="images/after-pictures/6.jpg" class="igc1" />
<img src="images/after-pictures/7.jpg" class="igc2" />
<img src="images/after-pictures/8.jpg" class="igc3" />
<img src="images/after-pictures/9.jpg" class="igc4" />
<img src="images/after-pictures/10.jpg" class="igc5" />
<img src="images/after-pictures/11.jpg" class="igc1" />
<img src="images/after-pictures/12.jpg" class="igc2" />
<img src="images/after-pictures/13.jpg" class="igc3" />
<img src="images/after-pictures/14.jpg" class="igc4" />
<img src="images/after-pictures/15.jpg" class="igc5" />
</div>
The igc* class denotes the column the image is in.
CSS:
#image-grid {
border: 1px solid #aaa;
width: 745px;
padding: 5px 2px 2px 5px;
}
#image-grid img {
width: 150px;
height: 105px;
margin: -2px;
}
jQuery:
$('#image-grid img').click(function() {
$(this).animate({
width: '450px',
height: '315px',
zIndex: '10'
}, 200);
});
have an array of values [1,2,4] representing the values of a multi-select box, how do i set them as selected using either jquery or plain javascript?
thanks for your help.
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
I'm using expandable plugin by Brandon Aaron to auto grow my textareas in the form and it is working ok.
the problem is that I'm loading a lot of pages through ajax so I need to rebind the plugin method to the textareas loaded through ajax.
is there a way to do this kind of method calls like
$("textarea").expandable();
through live() or delegate() in jQuery. it'll make my code much cleaner.
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'd like to use css pseudo-selectors ( parent > child, element:first-child ) in my stylesheet but IE6 doesn't seem to recognize those. Is there any plugin (jQuery preferably) that would allow me to use pseudo-selectors freely without worrying about the damned IE6?
Thanks
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...
How can I parse a html document or just a html element in order to replace all specific strings into other ones ?
In other terms:
- search for all strings #### in element .class
- replace them with $$$$$
I'm using jQuery..
thanks
Given a method..
public ActionResult Method()
{
// program logic
if(condition)
{
// external library
// external library returns an ActionResult
}
return View(viewname);
}
I cannot control the return type or method of the external library. I want to catch its results and handle that in a dialog on the page - but I cannot figure out how to get back to the page to execute the jQuery that would be responsible for it. Any ideas?
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
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
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.
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 :-(
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)
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
I currently have a simple flash Mp3 player on my site which works lovely. The issue is, most cell phones do not support flash and a large portion of my visitors come through via a mobile device. The alternative to this is to replace the flash player with a javascript player. I found a JQuery one but it only works on HTML5 compatible browsers. Does anyone know of a good alternative that would work on mobile devices as well as most desktop web browsers?
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.
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.
How can I user jQuery to separate multiple words in a td with an HTML tag such as <br/>?
For example, <td>hello bye</td> would become <td>hello <br/> bye</td>.
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?
Is there a one fix solution for all IE6 problems? One HTC/jQuery file that fixes IE6 problems like PNG, background position, hover, (even) rounded corners...
I'm just tired to look for all fixes, test them and put them seperately.