I have attribute value as:
<div id = "zone-3a-2f-2f-2fPortal-2fPages-2fHome-2fZones-2fLeft-2f-7ccomponent-3a-2f-2f-2fSpm-2fComponents-2fPromotion-2f" class = "promotion">
Now I want to get only portion of it, say Promotion and its value 2f, how can I get this using jquery ? Do we have built in function for it ?
Is there a way to hide a form from my users until they click a link and then the form drops down for the user to fill out, by using PHP or JQuery if so how? Is there a tutorial that will teach me how to do this?
jQuery is great especially its plugin but I do not like to add a lot of script tags in my html. Is there something similar to dojo.require? So I can manage those plugins easier and cleaner.
What does jQuery do differently when you specify the datatype as html as opposed to text. I haven't seen a difference but there must be some subtleties I'm missing. If I wish to return a portion of an html page as a string does it matter which I use?
I have an HTML table having n rows and each rows contain one radiobutton in the Row.Using jQuery , How can i look thru these radio buttons to check which one is checked ?
I'm looking for alternative JavaScript Libraries to learn as an alternative to jQuery, as I think it would be good to know more than one and so i can broaden what libraries I know.
I'd tried Mootools so far but am not sure what else is just as good.
Any ideas?
Hi All. Im wanting to develop an entirely ajax back end for a website im developing, and im looking at using jquery ui. The tabs widget looks like it could be useful for my menu, however i want to know if theres a way to load a specific tab dynamically. So basically, if someone entered the url mysite.com/tab1 it would open the first tab, and tab2 would open the second etc.
Can anyone point me in the right direction?
Thanks
i need to trim a string to its first 100 characters using jquery/javascript.
also is it possible to scan a string and look for a particular combination of keywords such as #key?
thanks a lot for the help.
$("#table").click(function(e) {
var row = jQuery(e.target || e.srcElement).parent();
$('#tabletr').bind('click', show);
name= row.att("id");
});
I am not getting the id value very first time i click on the row?
second time I am getting fine?
can anyone tell me why its happening like this?
hi.i wrote a jquery function and now i want to use it as a plugin so i could use that more than 1 place.the code lookes like this:
function loadTable(){
$.post("includes/action.php", {action: "gettable"}, function(html){
$("#tblstudents tbody").html(html);
$("#tblstudents")
.tablesorter({widthFixed: false, widgets: ['zebra'], sortList: [[0,0]]})
.tablesorterPager({container: $("#pager")})
.tablesorterFilter({filterContainer: $("#filter-box"), filterClearContainer: $("#filter-clear-button")});
});
}
And I want it have functions for setting "includes/action.php" and "gettable" in $.post function and $("#pager") ,$("#filter-box") and $("#filter-clear-button") from $("#tblstudents").Can anyone help me?
Hello
i have 2 divs next to each other i want mouseleave to fire when the mouse leaves the 2 divs not when it leaves one of them.
how can i do that using jquery?
Cheers
Hello,
i think the fullcalendar jquery-plugin is a really great solution.
i saw does the string for the title in the fullcalender plugin is escaped (htmlEscape). But i need to format some strings in the title for example bold text or colors, or small images?
the solution with another plugin (for example qTip, like in the examples) will not the right way for me.
is there anyway to format the title text?
Regards
flauschi
Hi All,
i am having the textbox which needs to accepts only alphabets i tried with jquery mask but its only for numeric i can able to do , but needs to enter only alphabets in a textbox can anyone help me in this regard.
ok i have 6 buttons, im trying to have a jquery listener for when you hover over one of the 6 buttons, it changes class. im using a for loop to do this, heres my code:
$(document).ready(function() {
for($i=1;$i<7;$i++) {
$('#button'+i).hover(function() {
$(this).addClass('hovering');
}, function() {
$(this).removeClass('normal');
});
}
});
each button has an id of "buttonx" ( the x being a number )
help?
I have table that gets dynamically created.
When using jQuery and toggle, everything works. I however get a small visual glitch - it seems the HTML sometimes get selected. How would I disable this on a faulty drag or mouse operation?
Is there a difference in the DOM between text in a cell and 'not text' or buffered space in a td?
Thanks in advance.
Hi all, would the following Jquery selector get all of the 4th td elements of all the tables on the current page, and return their text as an array?:
var isbn = $.makeArray($("table tr td:nth-child(4)").text());
I'd like to use jQuery's validation plugin to validate a field that only accepts alphabetical characters, but there doesn't seem to be a defined rule for it. I've searched google but I've found nothing useful.
Any ideas?
Appreciate your help.
I'm using the JQuery autocomplete plugin. I wish to override the implementation of the filllist() function. Can someone point me to an example of how to do this?
In the code snippet below, from my jQuery setup, I need to check if the image file actually exists and if not, I'd like to substitute a default image. Currently if the file does not exist, I just get a broken image placeholder...
$('#myTheme').change
(
function()
{
var myImage = $('#myTheme :selected').text();
$('.selectedImage img').attr('src','../wp-content/themes/myTheme/styles/'+myImage+'/screenshot.jpg');
//if screenshot.jpg does not exist, use "../../default.jpg" instead
}
);
I am chnaging the image src onClick event like below
IF the hyperlink is clicked then i need to change the image in a div box
<div id="left_img">
<img style="float: right;" src="/image/char.gif">
</div>
Jquery
$("#left_img").attr("src","http://www.abc.net/image/2_char.gif");
Now i want that instead of abrupt change of image there should fade out of old image and fadein of new image
How can i do that
So I have image on my html page. I want uipdate it 14 times per second smoothly (with some default Jquery effect) (update image with one from URL same as image has ... or refresh if it sounds better) How to do such thing?
Hi,
I need to target all links with a class of hslide and attach this to them. Any jquery guru's out there know how to do this?
onclick="return hs.expand(this, { slideshowGroup: 'groupC0', wrapperClassName: 'rounded-white', outlineType : 'rounded-white', dimmingOpacity: 0.8, align : 'center', transitions : ['expand', 'crossfade'], fadeInOut: true });"
Thanks,
C
With jQuery, how can I display a flash message at the top of the page in an easy way? Is there something built-in, or a plugin, or is it easy enough to do it yourself?
What I mean is like after a successful ajax post I would like to just say "hey, it went good" in a non-obtrusive way.