jQuery('td[class=bgoff]').each(function() {
var td = jQuery(this);
... no apply selector to "this" only
});
I'm working with tabular data in html and trying to parse the contents of each TD (they are not uniquely identifiable).
Using XPath, I can prepend the path of "this" to additional selecting.
How can I achieve this with...
I'm creating an HTML editor, similar to this one I'm typing in right now with the output below. I'm using an iframe and dumping the $htmlTextBox.val() into the body of the iframe.
I'm trying to create a stylesheet inside the iframe so that it looks as good as it works.
Thanks in advance!
$htmlTextBox.keyup(function(){
SetPreview()...
If I have a button that sets off a jquery script is there a way to make sure the button is inactive until the script completes?
...
I am trying to change the text inside a div based on how far down a page you have scrolled. I've been tinkering with jQuery's scrollTop and document height but have so far failed to produce the desired results.
How would I get the position of an element on the page and then get jQuery to do something once you have scrolled to that eleme...
Hi I get the following error when I try to validate credit card, it seems to be a straight forward error, the catch is that it occurs even after the jquery.validate.js is included.
for some reason it is unable to find the function, and has broken my code.
did anyone encounter a similar problem?
(jQuery.validator.methods.creditcard(el...
Before meeting with Ajax and Jquery, in my projects I had a function like below.
Public Sub Raise_Alarm(ByVal p_Page As Page, ByVal p_Message As String, Optional ByVal p_IsError As Boolean = True)
strScript = "<script language= ""javascript""> alert('" & p_Message.Replace("'", "") & "')</script>"
Dim t As Type = p_Page.GetType()
...
Hello all,
I'm trying to make a "bubble" that can popup when the onmouseover event is fired and will stay open as long as the mouse is over the item that threw the onmouseover event OR if the mouse is moved into the bubble. My bubble will need to have all manners of html and styling including hyperlinks, images, etc.
I've basically acc...
I am creating an element with document.createElement().
Now how can I pass it to a function that only takes a Jquery object?
$("#id")
I can not use it, as the element has not been rendered in the page yet.
...
I made some tests with the load() command of jQuery, something like:
$('').load('my.html div#content', function(){ etc.
I was surprised to see that I was able to retrieve the div#content but not its child elements.
When I substituted div#content by any of the child descriptors, e.g. a.opts I got the expected result - in this case, all t...
I'm building a recipe-finder for a new food blog. The design I have basically involves the user selecting ingredients, one at a time, from a drop down <select>, the option disappearing from the list (so they can't select it again) and appearing on another HTML list with a link to remove it from the list. Once they're done, they click a b...
Hi all,
I have a sIFR replaced H2 link that simply toggles (w/ jQuery) another div on and off. 'Seems' to work in all browsers but Firefox 3. Any thoughts ?
<ul id="titlenav">
<li><h2><a href="javascript:void()">Title</a></h2>
<ul id="titlemenu">
<li>1</li>
<li>2</li>
<li>3</li>
</ul>
</li>
</ul>
$(...
I'm having a problem triggering events on items that have been added to the page. In the following example, if you click X it will remove one of the items, but you if you add an item you can't remove it.
Here's the list:
<ul id="mylist">
<li>Item 1 <a class="remove">X</a></li>
<li>Item 2 <a class="remove">X</a></li>
</ul>
<a cl...
Hello!
I'm trying to get input box to show different dates depending on the users selection from select box. If user select today today date should show if tomorrow, the date for tomorrow.
My qustion is how do I get the select box to show the correct date?
<?php
$tomorrow = date("Y-m-d", mktime(0, 0, 0, date("m") , date("d")+2, date...
I have a jQuery UI dialog that opens when the user clicks a button, and I want the dialog to appear near the button. This is not so hard, for example:
var pos = $('#mybutton').offset();
$('#mydlg').dialog({
// ...
autoOpen: false,
position: [pos.left, pos.top]
});
The problem is when the button is on the far right side of ...
I want to hide all blocks which only contain hidden DIVs (aside from a caption). All elements have to be selected via class names.
In detail, I want each "eventBlock" not to show up when all "groupBlocks" underneath are already hidden. The same with "Menu" which should not show up when all child eventBlocks are hidden.
Each "Menu" cont...
I have some input checkboxes that are being dynamically generated in a $.post callback function. Then i have a $().change() call that does things when the value is changed (alerts some info). However, for the dynamically generated inputs, the .change() does not work. There are other inputs that work that are hardcoded into the html that ...
I have a form with a select field and a div i wish to update with a value depending on what the user selects.
Example:
<select name="mysel" id="msel">
<option value="test1">Test1</option>
<option value="test2">Test2</option>
<option value="test3">Test3</option>
</select>
<div id="myresult"></div>
I would like the div to ...
Im trying to accomplish something "like" this. I want to add the text stored in some JS variables into the doc based on the value selected in a combo. i.e. how do I reference JS variables based on the selected value of a combo?
<select id="clickMe">
<option value="a">a</a>
<option value="b">b</a>
<option value="c">c</a>
</se...
Hi... I am trying to get the index of an element using jQuery to send to a PHP script. Here is my XHTML
<form action="/accreditation/questions/" method="post" id="questions-form">
<fieldset id="question-0">
<legend>Question</legend>
<h3>What colour is grass?</h3>
<ul>
<li><input type="radio" n...
My code is meant to replace radio buttons with dynamic ones, and allow clicking both the label and new dynamic radio element to toggle the state of the hidden with CSS radio box.
I need to send to questions.checkAnswer() three parameters, and these are defined within these initiation loops. However I always get last the last values once...