I simply have a table with a bunch of ✔ X and a few other symbols, how can I change the class of a cell based on it's contents?
jQuery example:
$(function(){$("td:has('✔')").addClass("tick"); });
$(function(){$("td:has('X')").addClass("cross"); });
...
Hi,
I am new to jQuery and this is my first assignment so am nervous. Now I question is>>>
I Have menus like(in case of this website) "Questions", "Tags", so on. And all this menu have submenu. Now What I want to do basically is to group of submenus under one menu to an array.
Also I have not included any code because have not written an...
Hi
I have a problem I am using jquery U.I tabs that load everything with ajax. Now I have it right now everytime you click on a tab a partial view is loaded up into that tab.
Now in this partial view their are javascript files that use jquery to bind all the events that are needed in that tab plus some jquery plugins I am using.
Now...
Best Rich Text Editor for web application having dynamic form with many text editor.
1)text editor can easily trnsform textarea
2)Light weight
...
Hello all,
I'm developing a Firefox addon, after nominating the addon for public release in Firefox addons site, the reviewer asked me to wrap all my function inside a namespace or package name.
So far I've wrapped all my functions except "jQuery" function:
myaddonname = {
initialize: function() {
var prefManager = Components...
I need help in displaying a colour palette in my application. I am using CakePHP and JQuery for implementing mu application. For my themes module I need a colour picker or colour palette. Is there any plugin to download and use or is there any helpers available? Can someone guide me.
EDIT
Is there any other simpler plugin, that just di...
Hi this issue is really effecting me a lot any suggestions are greatly helpful
I need to add the validation in rules so that If i give a value in one field the other fields should also be filled or If I do not give any value in any of the fields it should be ok
This is for my phone number fields I have three fields named as areaCode,...
Hi
I have some tabs that are ajax powered. So everytime a tab is clicked all data is loaded including javascripts. So if they click on say Tab A then click on Tab B and finally Tab A. All Tab A scripts will be loaded twice.
Now I am wondering how does the caching work. On the second time they click on Tab A how much faster will these s...
Is this syntactically correct.
success: function(results) {
if (results.d.Name.length > 1) {
if (!(results.d.Id > 0)){
results.d.Id = 0;
}
var html = '<img style="float:left; height:100px;" src="inc/images/'
+ results.d.Id...
I have TextArea. on buttonclicking I alert
alert($("#textarea1").scrollHeight);
but i get undefined. How to get it?
...
I'm having some issues with jqueryui tabs and linking to certain tabs on another page.
Basically, each page has tabs, and all are navigational via drop down at the top, with each 'tab' being available in the drop down. Currently I'm able to text-link, but only within the page I'm on, and I'm just lost on the getting it to work correc...
Hi all!
I am trying to translate JQuery's datepicker without much success. With the code below, months get correctly translated, while the days (short) are not translated! What's wrong?
<script type="text/javascript">
$(function() {
...
$("#datepicker").datepicker({
onChangeMonthYear: function(year, month, inst) {...},
...
I have the following code:
$('#Element1').event(function() {
$('#Element2').event({ prop: $('#Element1').someMethod() });
});
Now the Element 2 responds on an Event of Element1 and when Element 1 property changes. How to do it vice-versa in an optimum manner.
...
Hi all,
I would like to create something similar to Gmails interface. Especially the way contacts are managed is very interesting.
I'm not a Javascript guru, but know my way around jQuery.
Thanks!
...
Hey guys,
i want to parse an xml file with jquery. This works so far, only the output confuses me:)
probably you can help me.
$(function(){
$.get("images.xml",{},function(xml){
var output = "<ul>";
$(xml).each(function() {
smallImage = $(this).find("small").text();
//bigImage = $(this).find("big").text();
...
Hi everyone,
I'm having some trouble getting a jQuery plugin to work correctly in my MVC view. Here's what it looks like at the moment: (I've copied all needed jQuery includes and css files into the /Scripts folder of the site)
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<script src="/Scripts/jquery-...
Hi guys,
I have a User control (because I use the same in other page, so I thought I should reuse code and not double my work), but in this page I show a list of companies and each one has a company number, I need to pass this company number to that User Control and it has to reload using that passed company number.
How can I accomplis...
i have two textbox1 and textbox 2..when i start typing in textbox 1, textbox 2 should automatically have the same chars inserted..similarly wehn i type in textbox 2, textbox1 should get updated. Any ideas?
...
I find myself doing a lot of this kind of JQuery:
$('.filter-topic-id').each(function () {
var me = $(this);
if (me.text() == topics[k]) {
me.parent().show();
}
});
I store $(this) in a variable called me because I'm afraid it will re-evaluate $(this) for no reason. Are the major JavaScript engines smart enough to ...
Hi
I have a struts form that contains many input fields generated using indexed properties.
As a result the id of my form elements are indexprop[0].date, indexprop[1].date etc.
Does anyone have any idea how i could assign a jquery datepicker to each of these input fields?
Thanks
Damien
...