Hey,
I'm trying to replace parts of a Val() in jquery with some text but am not sure how to do this. $(this).val() returns "# number of...." - I would like to replace # with custom text, but Val doesn't seem to have a replace() function. I'm quite new to JQuery, so I might be missing something obvious.
Thanks for any help
...
Hi All,
I am using the following code to store values in aspx session.
Code:
$("div.menu_body a").click(function() {
var linkHeaderID = $(this).parent().attr("id");
$.ajax({
type: "GET",
url: "SessionHandler.ashx",
data: "headerLink=" + linkHeaderID + "&link=" + this.id...
I'm interested in using fcbkcomplete, which has:
onselect fire event on item select.
onremove fire event on item remove
What I'd like to happen for those two events is to alert a list of the IDs/values of the items in the input box.
Can you help me understand how to get these values?
Thanks
...
i have a form in which have 30 input box and 10 text area field and all are mandatory fields.
How do i apply a validation through jQuery / javascript together for all input field that it can't be blank/empty/NULL.
i don't want to use each time each input box's ID and create a separate validation for each input box and text area
if an...
A button click event triggers filtering on a data table. While JQuery is processing that , the page should display a loading image.This is not an ajax request.
This is my code that doesn't work :
$("somebutton").click(function(){
$("#loader").show();
// do some stuff.....
//...
// now hide the loader again
$("#loader").hide(...
Hi ,
Is there a jquery modal window which on on click on the background doesnt closeup.
Thanks.
...
I want to submit a form like this:
<input type="button" onclick="$('#form1').submit();" value="Create" />
but the ASP.NET MVC 2 Model Validation doesn't work.
...
$(document).ready(function(){
var randomId = "id_"+Math.floor(Math.random()*1000);
var wrap1 = $(document.createElement('div')).css('overflow', 'auto')
.width(50).height(30).css('border','1px solid black').text('a')
.attr('id',randomId);
var content1 = $(document.createElement('div')).width(100)
.text...
I want link to tutorial for JQuery and ExtJs which will cover following contents or Topics
Note: PLease do not provide me link of their sites i know them.
How to setup both of the packages.
It is required as its essential.
How to access a DIV element
How to get all the elements in a div like checkboxes, radio buttons, div etc
H...
I have a couple of web-pages where I write out some code c#, and some XML. I'd like to find a way to highlight the syntax of the different content to make it easier to read - very much like here on Stackoverflow?
I already use a bit of jQuery so something that plugs into that would be a nice fit.
...
<form action="#" id = "form1">
<input type="submit" value="submit" />
</form>
<input type="button" onclick="$('#form1').submit();" value="submit2" />
<script type="text/javascript">
Sys.UI.DomEvent.addHandler(
document.getElementById("form1"),
'submit',
function() { alert("abc"); return false; }
...
I saw a comment on Ben Nadel's blog where Stephen Rushing posted a loader, but I can't figure out how I can pass the selectors and parameter..
I think I also need a completeCallback & errorCallback functions?
function imgLoad(img, completeCallback, errorCallback) {
if (img != null && completeCallback != null) {
var loadWatch...
Hi there, I'm using the following script to request new content to a file called index.html:
function addJS(js_urls) {
$.each(js_urls, function(index, value) {
$.ajax({
type: 'GET',
async: 'false', //We should not cache dynamic js-scripts
dataType: 'script',
url: value
})
})
}
fun...
Look at this:
$('form).submit(function (event) {
$(':input.required').trigger('blur');
var num = $('.warning', this).length;
alert(num);//Focus here!
if (num) {
event.preventDefault();
};
});
if there're 5 required textbox is empty,then when click the submit button[ID:button1], ...
I have this JQuery expression
$.getJSON("http://api.flickr.com/services/feeds/photoset.gne?set=72157607523855079&nsid=9298216@N08&lang=en-us&format=json&jsoncallback=?", function(data){
$.each(data.items, function(i,item)
{
$("<img/>").attr("src", item.media.m).appendTo("#images").wrap("<a href='" + item.link + "'...
I want to add new column on a button click in jqGrid. Following is the code that i am using to define a grid. can someone help me, how to define new columns with position.
jQuery("#list").jqGrid({
datatype: "local",
height: 250,
colNames:['Inv No','Date', 'Client', 'Amount','Tax','Total','Notes'],
colModel:[
{name:'i...
//html structure
<div id='outer'>
<div id='inner'>
</div>
</div>
I am adding some data to inner element like
$('#inner').data('_key','_someValue');
Now some time in future, I am clearing text of outer element.
$('#outer').empty().html('some thing new');
I am clearing div's text using empty(), I read that emp...
Hello,
The value of ig is being transfered fine, but I need to put this image into an image, please tell me what I am doing wrong.
var ig = '<img src='+$(this).attr('src')+' style="z-index:1">';
$('#big').val(this)
Thanks
Jean
...
$(function(){
$.getJSON('http://ws.audioscrobbler.com/2.0/?method=user.getweeklyartistchart&user=ElicitBelief&api_key=25135a535781328243f9e31968abc14&format=json', function(data) {
alert(data)
});
});
Firebug says: GET http://ws.audioscrobbler.com/2.0/?method=user.getweeklyartistchart&user=ElicitBelief&...
I have a page that looks something like this:
+-------------------------------------------+
| |
| +----------------------------+ +--------+ |
| |main | |sidebar | |
| | | |+------+| |
| | | ||jquery|| |
| | ...