This code is supposed to find all table rows with a class of "selected", remove that class, then find all checked inputs that are descendants of a tr and give its tr a class of selected. The problem is, that even radio boxes that are not checked are being returned by $(' tr input:checked', '#deviceSelection') and everything is getting a class of selected. Anyone know whats wrong? I'm using jQuery 1.4.1
I am developing an application and need to be able to use either JavaScript or PHP to request a page, add code to the end of it, and thenopen it for the user.What I want:
At the end of my code below (9 lines up from thebottom) I have an image that fades in. I would like the sameimage to fade out after hover instead, but im unsure if this is possible due to the nature of my page.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>
I have an application that produces a dynamic unordered list from DB categories table. The list is representing the hierarchy by adding a “..” (Double dot) in front of the list item name for each hierarchy level like so:
I am trying to create 2 different drop down menus which are chained.
First drop down menu: options 1, 2, 3, and 4
Second drop down menu: options 1, 2, 3 and 4
However for the first drop down menu, if you choose the number then that number cannot be selected again on the second drop down menu. So if i pick 4 on the first drop down. then only 1, 2, and 3 should show up on the second drop down OR if you pick 4 on the second drop down it gives you an error saying you selected that value.
Here is the complicated part that I cannot figure out.
I want each drop down menus on two different pages and not on the same page. So after you select the submit button on the first drop down it should go to another page with the second drop down.. Has anyone seen this before.
I am not a programmer by any means. I have 2 comboboxes that are chained together. (i.e. When I change the first combobox the second combobox has different options in it). The problem is when I use my AddRow() Function, when I change my first combobox on the 2nd row, it populates the combobox on the first row. I know I need to somehow supply a unique id to each row, but not sure how to go about it.
Heres the code: Code: <html><head> <title>Temp</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Style-Type" content="text/css"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <script type="text/javascript"> function addRow(tableID) { var table = document.getElementById("Table1"); var rowCount = table.rows.length; var row = table.insertRow(rowCount); var colCount = table.rows[0].cells.length; .....
I'm trying to combine a chained drop down list with the ability for the last selection to show/hide a div. I've researched and found ways to do both individually, but I'm hitting the wall when it comes to combining the javascript.
This is how I'd like it to work:
-- User selects from DropDown List 1. -- DropDown List 2 options appear based on the selection in 1. -- User selects from DropDown List 2, -- Appropriate div is shown.
Here's the Javascript I'm using to show/hide a div:
function showDiv(divID) { var div = document.getElementById(divID); div.style.display = ""; //display div }
Is it possible to rewrite the URI shown in the browser "Address" bar using JavaScript? That way, during a <form> POST, the "Address" information could be captured too.
if ((document.myform.e-newsletter[0].checked==false) && (document.myform.e-newsletter[1].checked==false)) { alert("Please select whether to send the monthly email newsletter with the latest news and articles about diabetes care.")
I have an html based website that needs urls converted from [URL] to [URL] the website has no mysql database. the urls are written through javascript. download from below the js + html files Code: [URL] urls writing rules can be found on common.js and set_form_menu.js.gz files
I'm having a problem rewriting a window with a popup I made. I'm using Debian Woody with Mozilla 1.0. I can make the popups, but I cannot rewrite the original window with the new information gathered from the popup. Can someone please make some suggestions. I've got most of my information from an old copy of the Rhino book.
Say I have multiple isntances that look similar to the above. However, I have no possible way of identifying them uniquely (because I don't know the name prior to generation).Is it posable,using JS, to snag the previous element and strip it of it's tags then rewrite a new element isntead of the two originals,say using an onClick() event on either of the elements?
This,among other things, causes a function called load to be called on the href of the anchor. This works fine. Howver I want to use the live() function with this as I am going to dynamically change the links in the listnav div. I tried doing it like this :
But that does not work. My question is how would I go about changing this function so that the actions are applied to any new anchors added to the div dynamically?
I am exhausted today, not to include the funk that the BCS national championship put me in, so I must be either crazy or missing something. When I do the following the code works;
how to toggle between functions, however I because I am reloading the element that contains the checkbox I am clicking, I need to use the live function (I think).
I have used live before and it works great for clicks, but can I use it with toggle.
frist of all, im a newbe on jquery. i have a table where i can add new "<span>" and i can edit it with editInPlace plugin but i have a problem. when i load the web with those elements (<span>), i cant edit it after i add a new item, then, all the items are editable
how I can execute this 'function(dateStr, inst)' . The jQuery partially works it divert to another page but without parameters, the outcome displays [object Object].
I am using a delayedObserver which works great, but I can't figure out how to use it when the field I am binding is loaded via ajax. So ideally, something like this:
This would bind any form elements with the live_form_field data attribute to the observer and submit the form. The code doesn't work though since that isn't the right syntax for the .live method.
So I have a set of <SELECT> elements that are ajax'd in and out depending on what is selected using the event "change". I know that .live("change") is not fully supported.