Hi I have some tables in my page. The first row of each table is normal but the rest of the rows are hidden by giving the tr tag a class of hidden. There is a link in the first row to show more info (fade in the hidden rows) which currently uses this selector:
$(this).closest('tr').nextAll("tr.hidden").fadeIn()
However within the hidd...
html += "<table><tr><td> <label for='id_first_name' ><b>Timezone:</b></label> </td>";
html += '<td><select id="timezone" name="nodes" style="width:300px;margin:5px;">';
{% for tz in all_timezones %}
if('{{tz}}' == 'Asia/Calcutta')
html+='<option value="{{tz}}" selected>{{tz}}</option>';
else
html += '<opt...
Hi,
I'm trying to remove the first link-image below the h4 and prepend it to div.image-thumb. The code i use work's fine if it's just one table row ".tr-class" .
But when I have multiple rows, it copies all the link-image into .image-thumb. So if I have 10 rows, then each row will have 10 link-image each. How can I can get just the rig...
I have a WP Blog with a few DIVs generated through PHP loops. I would like to be able to show additional about a DIV when someone clicks on it.
The code looks like this:
<div class="story item-1">
<div class="story item-2">
<div class="story item-3">
<div class="story item-4">
(etc. Could be any number of these.)
Clicking on one of ...
I've got a fiddle going here to show what I'm trying to do.
I have a table that is generated dynamically, so the columns could appear in whatever order the user chooses. So, I'm trying to get the index of two specific headers so that I can add a CSS class to those two columns for use later.
...
I'm having trouble getting an externally loaded SVG to do what I want it to with Keith Wood's SVG library.
I can load an external SVG fine with:
$(document).ready ( function () {
$("#some_id").svg({
loadURL: 'my_file.svg',
onLoad: my_function,
settings: {}
});
});
I can ...
I'm trying to select a div with the id "about me". I think I am having problems because of the spaces.
alert($link.attr("title"));
I get "about me"
alert($('#'+$link.attr("title")).attr("title"));
I get undefined.
I have tried to use php and jquery methods for removing them but it doesn't work.
So how do I get around this?
...
Hi,
I have this:
<meta name="description" content="NEED_TO_UPDATE_THIS" />
<meta name="keywords" content="" />
and i need to update the content of meta tag that has the name="description" using jQuery. How can i use the selectors to choose that content atribute of that tag?
thanks
...
Usually, Firebug gives a half decent error message when something goes wrong or doesn't compile. In this case though, I am simply getting the following:
X: $(
$('#' + divName).emtpy();
The code is something like this:
// Some code that sets variable row_entry
// debugger;
$('#' + divName).emtpy();
$('#' + divName).append(row_entry);...
$(".mylink").live('click', function(){
var linkid = $(this).attr('id');
if($("#TBL").find('tbody > '+ #linkid ).css("display")=="inline"){
// Do Somerthing
}
});
I have to put the Dynamic variable "linkid" in to the above if condition iam looking to have the interpreted value
.Iam getting "invalid ch...
I've got a list that looks like this:
<li class = "current_parent level-0">
<a> Parent Link </a>
<ul class= "children">
<li class = "level-1">
<a> Link to child </a>
</li>
<li class = "level-1 current_page_item">
<a> Link to child </a>
</li>
<li class = "level-1">
<a> Link ...
Helo I use this code:
cur = $('input:radio');
cur.wrap('<span class="customRadio"></span>');
what i must to do to acces the '.customRadio' element?
I already tried:
cur.parent('.customRadio')
and
$('.customRadio')
...
$j=1;
?>
var t ='';
var options = "";
</script>
<?php
foreach ($this->data['DEFAULTS'] as $rec){
foreach ($rec as $key=>$val){
?>
<script type="text/javascript">
var cntr = "<?php echo $j;?>";
var reference_v...
l = $("#chat > div.monologue:last div.message:not(.pending):last");
...
I have a php function which get the Details when passed an number .So, i have a dynamic table where each row contains insert button
which performs some action on the row record .Now Here i have to call php function getdetails and pass the data-number and get the details from the function
and create an array insert in to session
$(".b...
What I'm trying to do is search a page for an element that has the string 'tab_selected' in the class name. The class name is more than just 'tab_selected'. Its 'tab_selected + the UUID'. The UUID changes so all I really want to search for is if the class name contains 'tab_selected' and then if it does I want to get the ID of that eleme...
$('#myhidde').attr("value",data[0]['MODE']);
Iam calling ajax page which returns me json data
after getting the data from JSON results when i alert also iam able to see the value but iam not able to write to hidden field .What would be the reason .Dying for 2hrs
...
This is the statement which I am referering the below code $.ajaxSetup ({ cache: false});
I have a PHP script which produces JSON. I am consuming this json using:
$.getJSON ("GetDetails.php?id=123",
$("#formname").serialize(),
function(data){
**$.ajaxSetup ({ cache: false});**
//I do a...
Hi!
What's the best way to get all of the DOM elements on a page using jQuery?
Thanks,
DLiKS
Edit: This is for use in a script that grayscales an entire page using grayscale.js - http://james.padolsey.com/demos/grayscale/. jQuery because I can! :P
...
Here's a tricky one to start the morning.
I have a series of icons. When you click an icon it loads a form. Some of the forms have input[text] others have textareas.
What I'm trying to come up with is jQuery that once I load the form I can run that will... Focus in on the first input or textarea whatever it may be, dynamically so I don...