I have a set of divs that represent a set of fields. What I would like to acheive is that on click of a text box you can get the div with the class "hint" which is within the same div.
For example if I click "txtUsername" i should get "usernameHint"
This is the html
<div class="formfield">
<label class="desc" id="lblUser...
Below is a jQuery Timepicker plugin which i am using in my project.
http://labs.perifer.se/timedatepicker/
http://labs.perifer.se/timedatepicker/jquery.timePicker.js
Working fine in other browsers but in Google chrome - once you click on the scrollbar and then click outside, the timepicker will not disappear.
This is because chrome is ...
I'm working on a site that scrolls horizontally. I know very little about jQuery and prototype and I got this slider script working as the page scrollbar. When the window is resized smaller, the custom horizontal slider/scrollbar won't resize to the viewport's width.
I have the page and js files here http://keanetix.co.cc/scrollpage/
T...
Hello,
my problem is that I can not stop a timer.
I had this method to set a timeout from this forum.
It supposed to store the identifyer in the global variable.
By accident, I found out that it is still running after I hide "mydiv".
I also need to know now, if the recursive function creates multiple instances or just one for the ti...
<a class='leftpanel_anchor' tag='solutions' href='javascript:void(0)' > Solutions to <span class='leftpanel_keywords'>firstConResult</span></a>
i have an anchor like this. i want to select the content inside span class 'leftpanel_keywords'. how can i do that with jquery???
...
Good morning -
I have a jquery script that attaches a click event to every link, running an action when the link is clicked. This has been working great, but I just got some betatester feedback that's foiling me.
The user was right-clicking on the link and opening it in a new tab. When she did this, jquery didn't trap the click. BAD U...
I'm using the jQuery Clean Calendar Plugin, and it's working well. However, in my jQuery code, I want to check whether any '/' is present in textbox.val(). Then I want to do some operations. How do I check if the value contains '/' in it?
...
I have to interact with a remote api that forces me to chain requests. Thats a callback-hell in asynchronous mode:
// pseudocode: ajax(request_object, callback)
ajax(a, function() {
ajax(b(a.somedata), function() {
ajax(c(b.somedata), function() {
c.finish()
}
})
})
It would be much more readable in sync mode:
sjax...
For example, if the match is <div class="class1">Hello world</div>, I need to return
<div class="class1">Hello world</div>
not just "Hello world".
Thanks!
...
I have the following piece of HTML:
<div><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit ...
I'm trying to get some better logic behind this before I start writing code.
I have a model that collects new messages via a background process. (So the database gets updated every 2-3 mins with any new messages).
When the user comes to their inbox, they're presented with all their current messages. This is easy for me:
@user = User...
I am not able to drag and drop a <DIV> in a particular position.
The <DIV>'s right now get added to the bottom of the previous <DIV> even if I move the first <DIV> away from the initial position.
For example:
Lets say each <DIV> height = 50, width = 100;
When I drop the first <DIV> it is dropped at position, say (10,10)
The next <DI...
Hi, I have a real simple problem, but can't seem to figure it out.
The following doesn't work because of the way MVC builds the URL (It includes all the route information). I want pathname to return the virtual directory path only.
All I'm doing is redirecting to a different route when a user selects an ID from a drop down list.
$(...
(answers aggregated into another question)
The following jquery 1.3.2 code works:
<input type="select" value="236434" id="ixd" name='ixd' />
<script>
console.log( $('#ixd') );
console.log( $("input[name='ixd']") );
</script>
Console shows:
[input#ixd 236434]
[input#ixd 236434]
However setting the input to "hidden" preven...
I was just playing "Restaurant Empire 2" and it has a pretty complex interface for a video game in which you are basically running a restaurant with tons of sub-menus and complex controls. That video game is more complex than 99% of websites I've seen and used and is probably as complex as most of the software a person running a real re...
I am trying to hide a div until document is ready - and then display it.
This is what I am trying to do:
<div id='initiallyhidden' style='visibility:hidden'>I am a secret - kinda!</div>
<script>
$(document).ready(function() {
$("#initiallyhidden").show();
});
</script>
How can I make this work?
...
Whats the cleanest way to specify a shared target panel for jQueryUI tabs when all the content is loaded via AJAX and the target lies outside of the parent "tabs" div?
For example:
<div id="tabs">
<ul>
<li><a href="link1.html" title="Go to Link 1"><span>Link 1</span></a></li>
<li><a href="link2.html" title="Go to Link 2"><spa...
I have dynamicaly added input fields like this one:
<input id="person__1_badge_number" class="number" type="text" size="12" name="person[][1][badge][number]"/>
And when I add this field I call fallowing function:
function please_rebind() {
$('.number').bind("change", function() {
$.post('/registration/sell/check_badge_number', ...
I'm trying to setup a widget framework using jQuery, so I need to import java script by parsing the widget's xhtml and including in the framework page. The problem is that this may lead to pollution of the namespace. Is it possible to load java script into a namespace at runtime?
Perhaps there is some better method that I'm overlooking...
I have an ASP.NET Usercontrol and am using JQuery to do some stuff for me. I use the User control dynamically in different pages. I need to get the ControlID of the control that is in the user control. How do i dynamically do a $('#myControl') instead if $('#HostPage.myControl'), what is the syntax for $('<%#myControl.ControlID'%>), or c...