I am using JQuery to populate a set of three cascading dropdowns which have the autopostback to false. How in the code behind do I access the selected values of the dropdowns?
I am attempting to set a value in a textarea field using jquery with the following code:
$("textarea#ExampleMessage").attr("value", result.exampleMessage);
The issue is, once this code executes, it is not altering the text in the textarea?
However when performing an alert($("textarea#ExampleMessage").attr("value")) the newly set value is returned?
[http://jsfiddle.net/mhmBs/][1]
I tried using the method that he uses in a jquery validator plugin.. My error container is separated from the form, it is outside the form. When I use that method to validated that the user input at least one from 3 input text boxes. It validates the field, but the other items to be validated is ignored specially the items before 3 input text boxes.
Hey guys, is there a way to load XML Data Cross-Domain with JQuery (= client side)?
$.get('http://otherdomain.com/data.xml', function(xml) { }
The above doesn't work - do I have to rely on JSONP, or is there a way to load XML?
Hey guys, there is a form where the user select some of his friends and I'm curious on how I can implement a list that searches simultaneously while the user is typing a friend's name and when he selects the name the name is written in the text box(jQuery). And if the user wants to select more than one friend, when I'm inserting the names in the database, how can I separate the names that are written in one input field?
I was wondering if there was any way to, using jQuery, animate properties of text-shadow like size or colour.
It's annoying that there aren't individual properties like text-shadow-color instead of the statement only being available in combined form.
I am trying to update a google map v3 with jQuery and at the moment it loads the map but when .preview is clicked the map scaled to the width and height and then goes grey.
$('.preview').click(function(){
var width = $('#width').val();
var height = $('#height').val();
$('#map').css({
'width':width,
'height':height
});
var mapElement = document.getElementById('map');
var updateOptions = {
zoom: 6
}
var map = new google.maps.Map(mapElement, updateOptions);
});
i have a set of hyperlinks with href = javascript:method('category1') and likewise category2 category3 ...
I want to select hyperlink with href containing category1 so i have written
jQuery(a[href*='category1']) but dont know why it also selects hyperlinks with category10 category11 category12 ... also
I understand that category1 is common in all of them but 'category1' should'nt be do i need to put ' with escape charaters.
What is the equivalent of YUI 3's Y.Array in jQuery?
Y.Array() takes array like inputs and converts them into array. More info at http://developer.yahoo.com/yui/3/api/yui-array.js.html
What is the jQuery equivalent to the following:
function stopEvent(evt) {
if (window.event) window.event.cancelBubble = true;
else evt.stopPropagation();
}
Hello,
I have a ajax, jquery form which works fine, but returning a message from <div></div>. I want to return a value from a db query, a single value.
How do I go about doing it.
Thanks
Dave
How do I use jQuery to determine the size of the browser viewport, and to redetect this if the page is resized? I need to make an IFRAME size into this space (coming in a little on each margin).
For those who don't know, the browser viewport is not the size of the document/page. It is the visible size of your window before the scroll.
Hi every one I am looking for some jQuery slider and i found this which is impossible for me co create locally. link text
Did any one use something like this?
hi all,
how to create context tree view in html or dhtml or jsp or jquery or any other languages.. i'm not able to get the tree structue(image is not displaying) please any body help
How do i filter duplicates of two arrays before appending entries to a DOM node (#list)?
(function($) {
$(document).ready(function() {
var item_category1 = $('li.category1').get();
var item_category2 = $('li.category2').get();
$('#list')
.append( $(item_category1).clone() )
.append( $(item_category2).clone() );
});
})(jQuery);
function checkauth(){
jQuery.getJSON("/users/checkauthjson", null, function(xhr){
if(xhr.success){ return true;}else{ return false;}
});
}
Obviously, that does not work, but it illustrates what i want to achieve. I want checkauth to return a value which is checked against an ajax server script.
How do i do this?
jQuery made javascript so easy for me, I was able to get up and running in a couple of hours doing most tasks.
Which PHP framework has similar ease of use and rapid development/write less ability? Or am I stuck basically learning a new language no matter what framework I decide on?
Hi, how can one select an input "or" a select element with jQuery? I have a form, and I want to get the first element of that form that is an input or a select. So, this $('#myForm').find('input:first') or $('#myForm').find('select:first'). Any idea? Thanks
I want to do this: http://docs.jquery.com/Events/live#typefn
Only .live() doesn't support the change event- any ideas for work arounds?
Need to bind a function to some on-the-fly DOM elements, but not until change.
I have used the following code to generate some dynamic checkboxes. This works for the first time and adds the check box chk2 to the page and then after the trigger for the
$('#newLink').click is not working. Please help me with this.
<div id="chkBoxesDiv">
<input type="checkbox" id="chk1" ></input>
<input id="answerText" type="text" size="30" ></input>
<input type="button" value="add new" id="newLink"/>
</div>
$(document).ready(function(){
$('#newLink').click(function (event){
var i = 0;
//To count the children
$("#chkBoxesDiv").children().each(function(){
var child = $(this);
if(child.is(":checkbox")){
i++;
}
});
//prevent action
event.preventDefault();
//get textbox value to fill checkbox
var text = $("#answerText").val();
alert(i);
//if text not empty do stuff
if(text != ""){
//add label
$("#chk"+i).after("<label for=\"chk"+i+"\" id=\"lblchk"+i+"\">"+text+"</label>");
$("#newLink").remove();
$("#answerText").remove();
$("#lblchk1").after("<br /><input type=\"checkbox\" id=\"chk"+(1+i)+"\" ></input><input type=\"text\" id=\"answerText\" size=\"30\" ></input> <input type=\"button\" value=\"add new\" id=\"newLink\"/>");
}
});
});
Hi all,
I am fairly new to JQuery API.
I have been using mouseover, but I have never used hover before.
SO I am wondering if I should use hover instead.
Hello friends,
i have three subtabs under main tab, when I click main tab defauly I am dislyaing tab1 data using jquery grid, now initially I need disable the tab2 and tab3,
can any one help me out
thanks