So I am using Jquery to display a pop up menu on my current site. The html is a wordpress wp_list_pages output for all you wordpress types out there. For all you non-wordpress types, this means that wordpress will output nested ul & li elements in accordance with page architecture on wordpress. Bottom line, I want the jquery code to be w...
I'm working on a two level unordered list menu, and so far was able to take some decent newbie steps in figuring out how to show and hide the menu using jQuery, as well as animate it a tad.
I have two issues to resolve:
I want to have the parent li remain
in hover state when it is hovered
while the mouse is hovering over its child ul
...
I'd like to color numbers in a table for better readability:
green for positive (+00.00);
red for negative (-00.00) and;
black for default case (no sign)
Many thanks!
...
Does anyone know how can I checked a radio button by using the name instead of id in jquery?
...
I am trying to implement auto complete with jQuery, but the request itself is not going?
What can be the issue?
<%= f.text_field :ads_login_name, :class => 'input', 'autocomplete_url'=> autocomplete_for_user_ads_login_name_users_path, :disabled => (logged_in_user.id == @user.id) %>
I am calling this in a pop up which i created using ...
in my .aspx page i have something like this:
<select id="seltemp" onchange="calltemp()">
<option value="0" selected="selected">Select Template</option>
<option value="1">Template1</option>
<option value="2">Template2</option>
<option value="3">Template3</option>
<option value="4">Html Template</option>
</select>
<script typ...
In continuation to the question
http://stackoverflow.com/questions/1452380/good-jquery-interview-questions-closed
I have a follow up question.
What does the jQuery() function do? (there are four answer to this; subject should at least describe the selector-and-element-set mode)
I tried with googling but could not get a clear answer.
T...
$(textBox).focus( function() {
$(spans).css({"background-position": "0 100%"});
});
$(textBox).blur( function() {
$(spans).css({"background-position": "0 0"});
});
This is already short but it's either I am just too paranoid, or we could code this shorter by
$(textBox).bind('focus blur', function() { *do toggle here* });
or ...
I have a function that is bound for a page object in some Javascript files that are loaded on each page.
I need to add some more functionality to that already defined event handler. Here is an example of what i mean.
The object with the currently defined click event closes a pop-up div that appears on the screen. When this is clicked (...
I'm looking for a jquery plugin that makes it possible to drag and drop between two different tables. I have a table containing search results and I want to make it possible to drag each result to another table to be able to add them to that table. Anyone got an idea on how to do this?
...
Is there any way I can get jQuery to perform a function when you drag an item outside a droppable DIV?
Let's say that we have draggable or sortable items in a div and you want them deleted if they are dropped outside their parent div.
I know there is the "out" event but that works as soon as you drag the item outside the div, not when...
Hi,
I am trying to submit a form using jQuery's .ajax() function. It seems like it should be pretty simple but for some reason I can't get the type: "POST" to work correctly. Using type: "GET" works no problem, but "POST" doesn't seem to actually post anything to my accepting php script. When I do a print_r($_POST) it returns me an e...
Hi guys,
I tried to implement jQuery Animation in my site, but randomly after seconds, minutes or hours, the animation throws an error: "Invalid property value" Line 154 Char 4889 jquery-ui-1.7.2-custom.js.
Here is my Code:
$(idTimer).animate({backgroundColor: '#aa0000', color: '#ffffff'}, 1000);
$(idPrice).ani...
Hi Team,
Using: http://home.aland.net/sundman/ to split a complex form in to 4 steps. As well as as the 'next, back and submit' form buttons, I have created a menu above the form: step 1, step 2, step 3, step 4 linking to the hash tags #: #, #1, #2, #3 so the visitor can decide which step they want to view / edit. This works fine in fir...
When using multiple lists and hover states the 'parent' Cufon style replaces the child. In the following example, when you hover the Second Level link it will be replaced by a different weight.
Is there an option I can set so that the nested style stays the same or is this a bug/limitation within Cufon?
<ul>
<li><a href="#">Top Le...
Hi there...
Am new to jQuery and wondering if any could advise me on best practise...
I am looking to append a div element to the page, which contains a lot of html and not sure what the best way to achieve this is....or if it is advisable using jquery...
For example, if I wanted to append the following code to the page using jquery, ...
For now jQuery timepicker component is invoked wit click on input.
This is timepicker config:
<script>
...
oScript.text += "var timeId = '#' + '<portlet:namespace/>' + '_time';";
oScript.text += "$j(timeId).timePicker({startTime:new Date(0, 0, 0, 0, 0, 0), step: 30});";
...
</script>
This is jsp part for timepick...
Can anyone tell me of a way to open all links within an id in a new window?
...
I need to reflect a dynamically generated box, containing an image, besides some text on a colored background. All with a gradual fade, and beauty abound.
I've found jQuery plugins for reflecting images the way I'd like to, but no way to give generic elements the same treatment.
First thought is to generate the boxes as needed, take...
Greetings,
I have written a modal using jquery UI and it appears at the front of a flash movie thus the html inside the modal becomes corrupt, I tried to hide the movie right before modal gets triggered and reappears after closing the modal, works well but each .hide() and .show() the flash movie gets resetted while all I want is to hide...