I have an ASP page which displays a text box when it loads. It takes an input number, send it to the server through post back, and then displays some record in a grid view. After a number is input into the box, the server fetches some data from a database and add records to the grid view. It also contains a link column, whose URL is set ...
I want to apply some CSS to text that I can't get marked up in spans. So for example:
<li><a href="google.com">This is marked up</a> and this is not </li>
I want to select, with either CSS (preferably) or jQuery this bit: and this is not. Maybe there's a method of selecting the entire li then excluding a, that seems like a bypass.
Th...
Hai,
I have a group of radio buttons, i could able to pick the selected value using jQuery but not the text label for selected values.
for ex:
<input type="radio" value="1" name="priority">High</input>
<input type="radio" value="2" name="priority">Medium</input>
<input type="radio" value="3" name="priority">Low</input>
JQUERY CODE T...
i have one php file which process adding of record in Database fro array.
for example in array i have 5 items
aray an='abc','xyz','ert','wer','oiu'
i want to call one php file in j query ajax method
um = an.split(',');
var counter = 0;
if(counter < uemail.length) {
$("#sending_count").html("Processing Record "+...
I do understand what JSON/JSONP does, but I'm not a programmer and do not know how to extract the bare basics for simple usage. I've read a lot on JSONP and lots of examples on various usage for JSONP, but I have yet to find a simple example for retrieving text from another page (e.g. http://www.domain.com/external/text.aspx).
Could som...
Hello,
I am developing a user control (ascx) in ASP.NET which uses javascript for manipulating controls. Currently the javascript code is inlined and uses <%= somecontrol.ClientID %> to get the control it needs.
I want to put the javascript file in external file but from external file I cannot use the above syntax for retrieving contro...
I have an Ajax contact form that links to a jquery file but for some reason I get the following error in Firebug:
$("#contactform").submit is not a function
Here is the link to the jquery file:
<script type="text/javascript" src="scripts/jquery.jigowatt.js"></script>
Here is the jquery code:
jQuery(document).ready(function(){...
Hello,
I would need to build a html table that has a horizontally scrolable column. The scroll should be placed in the column's header.
My question first question is: do you know any jquery plug-in that is able to do this?
My second question: is this possible using a single table. I've heard that in order to do this you need to use mul...
All,
in the below code How to edit the current added value.i.e, in the edit function how to get the value in td .Also how can we check for duplicates.
<script type="text/javascript">
function edit(obj)
{
// var ele= obj.parentNode ;
alert(obj.innerHTML);
var htm = '<textarea name="modal" id="modal" rows="10" ...
I have the below code for my a Dialog box for a which contains a dropdown field
KPMS.ServiceRequests.Status = {
showOptions : function(requestId, userId, requestType) {
var url = BASE_URL+'service_requests/status_options/';
$("#dialog-modal").dialog("destroy");
$("#dialog-modal").load(url, {"request_id": requestId, "user_...
I need to be able to reset an input field back to its original color after it has been possibly changed via javascript to a different value. The problem is I do not want to hard code the value obviously in case the stylesheet changes. I would like to use the default color used on the page.
Is resetting the color like this fine, or is t...
In the below code onclick edit how can the value of tag test be obtained in the edit function.
<script>
function edit(a)
{
}
var a= <tr class="clickable"><td id="userval" BGCOLOR="#FF6699"><label id="test">' + a + '</lable> <IMG SRC="edit.gif" onclick="javascript:edit(test.value);" > ></td></tr>
</script>
Than...
Hello friends!
I have a text input field like text box or text area.
I want to prevent the user from entering certain character or a group of characters.
That is for example if I dont want # * @ and numbers from 0-9 these characters.
So Whenever user press any of the above character key then that character should not appear in to an in...
I am having problems with the Jquery qtip plugin.
It works fine in Firefox (see here http://movieo.no-ip.org/ hover over the first image).
But doesn't work in IE. This is the code:
$('.moviebox').each(function() {
$(this).qtip({
content: $(this).children('.info'),
show: 'mouseover',
hide: 'mouseout',
style...
After cobbling together a few questions I've managed to get this far to showing / hiding divs:
$(document).ready(function(){
$('.box').hide();
$('#categories').onMouseOver(function() {
$('.box').hide();
$('#div' + $(this).val()).show();
});
});
HTML:
<div id="categories">
<div id="btn-top20"><a href="">Top 20 Villas</a><...
<script>
function edit(elem)
{
var ele=$(elem).siblings('label#test').html();
var a=document.getElementById('test');
var htm = '<input type="text" name="modal" id="modal" style="width:70%;" value="'+$(elem).siblings('label#test').html();+'"/>';
$dialog.html(htm)
.dialog({
autoOpen: true,
position: 'center' ,
...
I swear the following code used to work, even in IE7 but now i get
Error: Object doesn't support this property or method
$('div').each(function() {
if(! this.attr('id').startsWith('light') ) {
this.css('zIndex', zIndexNumber);
zIndexNumber -= 10;
}
});
Any ideas?
SOLUTION
$('div').each(function() {
va...
I'd like to achieve the following effect using ASP.NET MVC and JQuery.
I've got a drop down list displaying a list of Countries. I want to make it so that when I change the value of the country, a new drop down list appears below it, showing a list of companies whose country of origin is the particular selected company. The thing is th...
I'm fairly new to jQuery - I found this snippet on the net and adapted it for my purposes. It searches a page as you type and removes all objects which don't contain the value you searched for. It works like a charm, however I would like to be able to highlight the string in the results which the user has typed in the input field.
I kn...
I have a question, if i set a image height in css and try to get height/width i get different results in different browsers. Is there a way to get the same dimension in all browsers?
You can find a live example here<-Removed
and the concept is like this:
CSS:
img{
height:100px;
}
Script:
$(document).ready(function(){
$("#text...