Hi,
I got several forms listed through a loop at one page such like this: (extract)
if(mysql_num_rows($r)>0):
while($row = mysql_fetch_assoc($r)): ?>
<form id="myForm" action="save_fb.php" method="post">
Title: <input type="text" name="fb_title" value="<?php echo $row['fb_title']; ?>" /><br>
<a href="javas...
Based on testing a page with ~220 elements, of which ~200 are checkbox elements, and each element has to query an array with ~200 items, I was surprised to discover that input selector:
$("input[id$='" + code + "']").each(function() { //...
is approximately 4-5 times faster than
$("input:checkbox[id$='" + code + "']").each(function(...
Another short Q, is there any short piece of code to get all DIVs on a page which have the visibility set to 'block' or 'inline'?
Thanks
...
All,
How to close and open a jgrowl manually
jQuery("div.jGrowl").trigger("jGrowl.close");
The above code doesnt seem to work.
Thanks.
...
when using jgrowl and if we invoke the following to close all the menus
$.jGrowl(data);
$.jGrowl('shutdown');
How to start it back.
The following gives an error
$.jGrowl('startup');
Thanks.
...
People, here I got some answers how to replace part of a HREF attribute of a link. Eventhough I didn't understand how the "\/\/\//\"'s works.
I need to do the following:
A code that replace, in each "A IMG", the SRC 1.bp.blogspot.com/_YfY-Tbu-shE/S3q2T9SJQxI/AAAAAAAAAI8/w0kTOPwaxqs/s1600-h/TELA%204.png to 1.bp.blogspot.com/_YfY-Tbu-shE...
All,
I use jgrowl to display certain content ,and i had got this weird error today
$(this).data("jGrowl") is undefined in jquery.jgrowl_compressed.js file in line 59
which points me to the followong line,
$(this).data("jGrowl").created=new Date();
And in my project js file i have the following code
if (data)
{
$('.jGrowl-notifi...
Hi Guys,
First post here so please be gentle :)
Ive tried searching all over the net and im not sure im searching by the right terms niether for its name. But what does the secondary options do in a jQuery selector? For example:
$('.results table', this.parent().prev())
The second lot of options on the .results table matches im not ...
I click a link in a table cell. I need to get the value of a specific cell within this same table row.
this
that
here
there
qwqw
dfgh
ui
there
I have a click handler attached to the link in the fourth cell. That click handler calls a function that opens a modal window. When a form in the modal is submitted I want to also pass the v...
Hi,
I'm having trouble wrapping my head around what should be a simple solution. I want to replace text within a label tag, without affecting the other 'siblings', if they exist.
Sample markup:
<fieldset class="myFieldsetClass">
<legend>Sample Fieldset</legend>
<ol>
<li>
<label>
<span class=...
I have a div used for filtering and i want it to close when anything outside of the div is clicked.
The selector I am trying to build, basically selects all elements except a specific element and excludes its children.
Here is what ive tried, but havent been able to get working
$('*:not(:has(.exclude *))').live('click', function() {Hide...
Hi, i have a generated table that contains multiple rows with each row containing a leading td with a checkbox and another td with a select list =
<div class="table">
<table width="100%" class="tframe" id="table0">
<thead>
<tr class="trheadline">
<th>Selection</th>
<th>Repository-Tag</th>
</tr>
</thead>
<tbody>
<tr class="trow">...
All,
A class jquery css class sets the following .
.newwidget { border: 1px solid #5a9ee9; background: #5a9ee9 url(t6.gif) 50% 50% repeat-x; color: #ffffff; font-weight: bold; text-transform: uppercase; padding:3px 3px 3px 10px; font-size:10px}
How to override this class and add a new class so that i can put different styles in it....
I want do do something like below from a checkbox,
There's a checkbox on every row, and I'd like to disable all the inputfields on a row with the class .room when the checkbox is clicked.
function toggleStatus(link) {
$(link).closest(".room").children(':input').attr('disabled', true);
}
also tried
function toggleStatus(link) {
...
I must be missing something basic here. Enlighten me.
I'm trying to grab the ID (289 in this example):
<tr class="header">
<th>ID</th>
<th>2</th>
<th>3</th>
</tr>
<tr class="highlight">
<td class="">289</td>
<td class="">field a</td>
<td class="">field b</td>
</tr>
... more rows
I'm using this selector:
$("#requests :n...
I created a simple Import script that takes a CSV processes it in PHP and returns a HTML table (essentially a user list).
This is the HTML output:
<tr id="user:1">
<td id="first:1">Jane</td>
<td id="last:1">Doe</td>
</tr>
<tr id="user:2">
<td id="first:2">John</td>
<td id="last:2">Doe</td>
</tr>
This HTML data is initially r...
Using JQuery it possible to clone a Div like this and change add a new identifier to it's ID and all it's children ID's?
For instance I'd like to be able to clone this:
<div id="current_users">
<table id="user_list">
<tr id="user-0">
<td id="first_name-0">Jane</td>
<td id="last_name-0">Doe</td>
</tr>
<tr id="user-1">
<td id="first_name...
Hey guys, this is simple but I can't make it workn... blah!
I have a UL with many LI. Inside of each LI I have a and two :
<ul>
<li><span>Qualification</span> - <a class="editItem" href="get/14">edit</a> | <a class="deleteItem" href="delete/14">delete</a></li>
</ul>
When I click the delete anchor, I would like to hide the LI. ...
does anyone know how can i get all styles applied to an id using jquery (so i can reuse it later in another tag)? something like
css:
div#myid{
width:100px;
height:100px;}
so i can later do something like:
for (var parts in $('#myid').css())
alert ('all parts of the style' + parts);
...
I am doing a small jQuery function. What this function should do is on leaving textbox it should display text from textbox as alert, clears textbox and again set focus in the same textbox. It is doing two of three tasks showing text in alert and clearing textbox but it is not setting focus back in that textbox.
Please note this textbox ...