I am using a jqGrid with multiselect put on. That works but I have a side effect which I would like to get rid off. Whenever someone clicks on a row the checkbox also alters its checked state. I would like to leave that out.
I tried this:
onSelectRow: function(row) { return false; }
and setting
beforeSelectRow: function(rowid, e) { ...
I'm experiencing odd behavior after adding options to a select via ajax.
After adding the items to the select, I want to select one of the items in the list based on value.
I tried the following RIGHT after I called the function that adds the options to the select
fillSelect("someAjaxServerVar");
$("#theSelect").val("somevalue");
Od...
I have resolved the issue by downloading the uncompressed version of jquery1.2.3.js. I looked for the line that cause the error. It was 1061. The code was...
if(set)
elem[name] = value;
return elem[name];
I had to remove this code to get jquery to work in IE. This is a major problem. I'm not sure if the lack of this code will have reper...
Is there a "start by" filter in jQuery, something like :contain but with a string beginning condition ?
...
Hey!
I'm trying to validate a textarea so a user can't add a new empty message via tinyMCE textarea.
But it just don't seems to work.
What am i doing wrong ?
JS:
var msg = $("#msg");
if(msg.val() == ''){
$("#msg_error").html("* Can't add an empty message");
}
Textarea
<textarea rows="5" cols="35" id...
i want to create a web chat/forum application that is google wave alike.
when one person is typing a new post or embed an image in it other persons are seeing this live.
i have read about different techniques and i feel that long polling and iframe are the most talked about.
so, which one should i use for this application and why? i'v...
Does anyone know if there's an equivalence selector in jQuery? Of course :contains exist, but what if we want exact matches?
My workaround is to do
$('a').filter(function() {
return $(this).text() == myVar;
}).addClass('highlight');
But I was hoping of a much easier method of doing $('a:equals(' + myVar + ')').addClass('highlight'...
Hello Gurus,
I have specification for products in text doc that I need to transfer into HTML.
Might sound a bit strange but but what I'm trying to do is replace paragraph tags into two table columns, so this:
<p>Load (kg):5,000, 10,000, 20,000, 30,000</p>
<p>Excitation Voltage: 10vdc recommended, 20vdc maximum</p>
into this
<tr>
...
i see this question but none of the solutions support min and max values range
http://stackoverflow.com/questions/995183/how-to-allow-only-numeric-0-9-in-html-inputbox-using-jquery
I see that http://jstepper.emkay.dk/ attempts to do this but seems very buggy as it allows you to enter multiple decimal places and other characters such as...
After reading through all of the jQuery doc, SO questions, and random blogs, I have been unable to find an answer to my problem.
Currently I am porting a Coldfusion Site to a .Net site. In my masterpage for the site I have all of my navigation elements as it is just the Administrative portion of the site.
The navigation html code:
...
I have a HTML table like this:
<table>
<tr><td>X</td><td>X</td><td class='latest order1'>X</td><td class='latest order4'>X</td></tr>
<tr><td>X</td><td>X</td><td class='latest order3'>X</td><td class='latest order2'>X</td></tr>
<tr><td>X</td><td>X</td><td class='latest order6'>X</td><td class='latest order5'>X</td></tr>
</table>
Now...
Hello, I'm having trouble with some Javascript, and hopefully someone may be able to help!
First, here is the code:
function Client_Selected() {
var temp = $("input:radio[name='selected_client']:checked").val();
var f_input_name = "fname_" + temp;
var l_input_name = "lname_" + temp;
var first = $("input[name='"+f_inp...
This is a problem I face while using jQuery within Firefox Jetpack. In my Jetpack code I'm dynamically creating some SELECT boxes with options and their
respective values:
...
listOfWords[i] = "<select id=clozefox_answer> <option
value=wrongAnswer>distractor</option>"
listOfWords[i] += "<option value=trueAnswer>" + currentWord +
"</opti...
With the increasing popularity of libraries like jQuery that make Javascript a lot more friendly, I see a tendency to delegate parts of the layouts to the client side: things like coloring of table rows (from simple things up to tools like flexigrid), fixes for cross browser CSS incompatibilities, syntax highlighting and so on.
Is it no...
How to add span tag within anchor, changing it from
<a href="somewhere.html">Here is the link to somewhere.</a>
to this with jquery
<a href="somewhere.html">
<span>Here is the span content.</span>
Here is the link to somewhere.
</a>
...
I want to manipulate a javascript array in PHP. Is it possible to do something like this?
$.ajax({
type: "POST",
url: "tourFinderFunctions.php",
data: "activitiesArray="+activities,
success: function() {
$("#lengthQuestion").fadeOut('slow');
}
});
Activities is a sing...
I am using jScrollPane on this Wordpresspowered site http://onomadesign.com/wordpress/identity-design/china-packaging-corporation/ at the right for the logo thumbnails. Now I want to use the http://www.kelvinluck.com/assets/jquery/jScrollPane/scrollTo.html functionality to vertically align the thumbnail of the current project so that peo...
I got a simple UI widget and i'd like it to alert() the "hello world!!!" when initialised.
$.widget("ui.myWidget", {
_init: function() {
//start
alert('Hello World!!!');
}
}
could some one explain how this init or _init function works.?
if i was to call the ui just like the dialog ui would $('#selector').dialog()
in...
I have a date input form which uses three selects (day/month/year)
The following script allows the selects to be set using datepicker. Additionally once you have done this once, the selects can be changed and the change is reflected in datepicker.
But if you set the selects first then click to open datepicker it doesn't pick up the cha...
Hello,
I have a hover effect applied to a div. All it does is basically increase the height mouseenter, decrease the height mouseleave.
As a separate function, I have a click effect applied to one of the divs:
$(function(){
$( '#div1 a' ).click(function() {
$( '.theRestofTheDivs' ).each(function() {
$(this).ani...