Total beginner question about jQuery:
I have a Form that contains several TextBoxes (input type="text"). I would like to display some sort of Tooltip when the TextBox receives focus and hide it when it loses focus. Ideally, the tooltip should be a "speech" bubble on the left or right side.
I googled a bit and found qTip for jQuery, but...
enter
scenario: I want to do an ajax call to update the image shown. Example: click to activate, click again to deactivate.
Now, image can change correctly when click for first time.
After that, if I click the img again, changes won't reflect anymore.
Reason, the onclick status still= yes
How do I access the hyperlink element to rew...
Hi everyone,
I've got a search input which sends data from an input to a php file as I type. The php file does a search on my database and shows up a list of search options. You know, the ajax style live searching.
My problem is, if you type something really fast, it might just conduct a search off of the first 1 or 2 letters even thou...
Hi
<a class="clickme" href="test.php?id=100&status=pending&time=2009" id="p_100">Click me</a>
$('.clickme').click(function(event) {
event.preventDefault();
var stringId = $(this).attr("id");
var mId = stringId.substring(2)
....
I can retrieve the value of id using ID of anchor element. I think I should be able to get it directly ...
hello everyone,
Please look at this code:
jQuery(document).ready(function(){
jQuery("td.setting").click(function(){
text = jQuery(this).text();
jQuery(this).replaceWith("<input class='inputSetting' type='text' value="+text+"><img class=\"accept\" src='images/accept.png'>");
console.log(text);
});
jQu...
I have five div tags(jquery tabs) in my aspx page...Inside the second div(tab) i have a button. onclick of that buttton the second div(tab) should be switched..instead of that the first tab is coming.. How can i switch the tab in code behind(Inside button onclick event)...
...
Hi Guys, I have a clients website - www.stagecraft.co.uk and they want the navigation on the hire pages (longer page) to still be there at when you scroll the page down. I've had a quick go (not live) with position fixed but in doing so it the leftside navigation is about 200px or so from the top of the window. Any when to get it at the ...
Hello, I'm trying to accomplish the following:
Upload a file to the application by submitting a form (enctype: multipart/form-data) to a JSP action which handles the rest (including writing the file to the disk, processing and returning some xml data about the upload).
Until recently, I was using this plugin:
http://valums.com/ajax-upl...
Hi,
So far I have got jCarousel to display, and load the images via a txt file,
What I want to do is show 4 images at a time, then when the user puts the mouse over 1 of the images the other 3 images to fade opacity, to 30%. Then if they move the mouse to the image next to it I want that image to be 100% opacity and the other 3 images ...
In this example:
I would like to use the "id" which is defined in the second function in the last (second) function. I thought using the "var" term would suffice but it doesn't.
Does anyone know how i could do it?
jQuery("td.setting").live("click",function(){
text = jQuery(this).text();
var id = jQuery(this).attr("id");
jQue...
Another newbie question. I had a question about creating a tooltip on focus, which works. The solution leads me to something like this:
$("input[id$=tbMyTextbox]").qtip({
content: 'Test',
position: {
corner: {
target: 'rightMiddle',
tooltip: 'leftMiddle'
}
},
show: {
when: ...
Possible Duplicates:
How to debug Javascript/jQuery event bindings with FireBug (or similar tool)
How to find event listeners on a DOM node?
How do I detect which events have been bound to a DOM element through JavaScript? In the example below I would like to be able to see that the click event has been bound on my 'clickable'...
Hi all, using jQuery I have the following code:
var selectedIdsArray = $("#selectId option:selected").map(function(){return this.value;});
var selectedIdsStr = $.map(selectedIdsArray, function(val){ return "" + val + "";});
It successfully retrieves a string of ids eg. selectedIdsStr = "2,45,245,1" from an <select multiple='multiple'>...
For example we have such dom:
<div id="main" class=".container">
any other elements
<div>
<span class="edit" />
</div>
<div class=".container">
<div class="edit">
</div>
</div>
How to make query, to select only first edit
Something like $('#main .edit:not(.container between)')
...
How to check if a user input text is all white space characters (space, tab, enter etc) in client side?
Thanks in advance!
...
I've got an ASP.Net project with C# and have a Repeater Control on an aspx page that builds up an html table by iterating over a datasource. I want to use the JQuery Flexigrid plug-in to make the table scrollable, but have been unable to figure out how to make it work due to lack of documentation on the plug-in. Does anyone know how to...
Aside from the framework, is jQuery worth using rather than creating your own javascript? I've always debated if the framework was better to use than to create your own calls. Are their disadvantages of using it?
Sorry for beginner question, I'm trying to feel out if it would be better to use this and create some of the ajaxish workings...
Is there a better way to do this jQuery selection:
$("p.DynFieldWrapper :input:not(:text):not(textarea)").focus(HideDynamicFormError).click(HideDynamicFormError);
$("p.DynFieldWrapper :text,p.DynFieldWrapper textarea").blur(HideDynamicFormError);
I am binding my function, HideDynamicFormError, to the blur event for textboxes and texta...
I marked this as Community Wiki since this might be more on the philosophical side of things, but I've been thinking about this on and off for a while.
Basically the idea is this: With MVC you have the controller that churns information, the model that carries it, and the view that displays it. It's a simple separation on paper. If I...
This is a javascript question. The fact that it mentions this website is irrelevant. This does not belong on meta.
I'm working on a Greasemonkey script to auto-load additional pages of answers onto the first page of answers here at Stackoverflow as you scroll. This is working well. I want to maintain the ability to up-vote/down-vote t...