i have a ul
<ul>
<li>1</li>
<li><a href="#">2</a></li>
</ul>
i need a thing that i want to make first li to anchor means
<li>1</li> to <li><a href="#">1</li></li>
and remove anchor from 2nd means
<li><a href="#">2</a></li> to <li>2</li>
how i can do this in jqeury
...
I have a method setup to fire onChange with the following code:
var product = $('#selProduct:visible');
var note=$('#bbdata');
product.selectProduct({
target: note,
url: 'product.php',
data: { ajax: true }
}).trigger('change'); // TO DO: to fire also on visibility change
Then I have a method where I make a div visible.
...
Hi there.
I have a problem setting value of an hidden input element. I've tried using jQuery and $("#SomeHiddenElement").val(sSomeValue) function, and plain JS document.getElementById("SomeHiddenElement").value = sSomeValue; but nothing works...
When I set the element to text type it works just fine...
The problem persists both in FF ...
New Google Analytics code looks like one below:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-0000000-00']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protoc...
I am reading a xml using $.ajax() request.
$.ajax({
type: "GET",
async: false,
url: "../../../ErrorMessages.xml",
dataType: "xml",
success: function (xml) {
$(xml).find("*[Name='" + Field + "']").each(function () {
message = $(this).find(Rule).text();
});
}
});
I want to make the call on...
when mouseover #divlayer, find() id of child span
<div id="divlayer">
<p>title</p>
<span id="apple">apple</span>
<span id="orange">orange</span>
<span id="kiwi">kiwi</span>
</div>
$('span').hide();
$('#divlayer').mouseover(function(){
$('span').show();
$(this).find(???).attr('id'...
I am using jquery datetime picker. it is showing date in "yy/MMM/dd hh:mm:ss" format on selecting the date and time. i am not able to change its format. How can i change it to my custom format "dd/MM/yyyy hh:mm"
...
I have a method defined this way:
var product = $('#selProduct:visible');
var note=$('#bbdata');
product.selectProduct({
target: note,
url: 'product.php',
data: { ajax: true }
}).trigger('change');
$.fn.selectProduct= function (options) {
var defaults = {
key: "id",
value: "label"
};
var se...
Hi,
I was wondering if someone can please help me with a jQuery script. I am using MVC 2.
I have 2 textboxes. When values are typed into the textboxes then the sum of these values should display in a label control as the user types. So if the page loads then the textboxes are empty so the label must also be empty (blank). When the ...
This is code snippet of my html page can i validate the two text feilds specified using jquery ,i am not using any form tag in my html page
<div id="panel1">
<fieldset id="fieldset1"> <legend>Registration Details:</legend>
Name of business:<br/>
<input size="30" type="text" id="businessname"/><br/>
...
Hi guys,
I have a label, costLabel.
What I want to be able to do is change the value of this label depending on the selected value of a dropdownlist.
This is my HTML:
<table>
<tr>
<td width="343">Package*</td>
<td colspan="4">
<select class="purple" name="package">
<option value="standard">Standard - €5...
I am having some trouble sending values from one page to another using the jQuery ajax() function.
For some reason the request.form on my VBscript page won't pick up the data I send using the ajax() function in jQuery.
Here is my javascript function which is called in an onsubmit event in my form:
function sendData() {
$.ajax({
typ...
Hi All
This is just a general question. Which is better, traditional ajax or the jquery ajax?
Because when I use the jquery ajax, it seems to do funky weird stuffs in IE. And it supposed to be a cross-browser library... So I'm a bit confused as to which one to use. Again I'm asking this because of the serial-killer IE...
The funky weir...
I am having an HTML table and I need to change it contents.
<div id='adf'>
<table id='tbl1' runat='server' >
<tr><td></td></tr>
</table>
</div>
I am changing the contents using a jQuery Ajax and the problem is that I am accessing the same table with same name after that. So I am changing the HTML content and inserts new...
Ok, this is a performance question I guess.
I have a slider with two navigation links (next and previous) and when the slider gets to the end of the row I am currently unbinding the next button, then binding again when it goes in the other direction. I am performing the same operation for the next button, but reversed.
the code for the...
I have an object that is inside of a form.
His value is assigned to an ajax call like this
var $$ = $(this);
if (typeof settings.data == 'string') {
data = settings.data + '&' + this.name + '=' + $$.val();
} else if (typeof settings.data == 'object') {
data = settings.data;
data[this.name] = $$.val();
}
I want to get the par...
Hello,
Via ajax method, I need to fetch an html which is a real mess, half of the elemnts are opened but not closed.
Now I need to find elements which contains time string as in such format: "19:00-20:00" which means it should have something such as "HH:MM-HH:MM".
How can I fetch these rows that contains such time-time elements ?
an ...
Hey everyone,
I've been searching all day for this but i can't figure it out myself..
I have a shopping cart that you can add items to. The shoppin cart is in a drop down so you have to click it in order to view it. Therefore, everytime you add an item to the cart i want to display "+1", "+2" and so on, somewhere and when u click on th...
I have the following anchor tag
<a href="http://www.google.com/">Google</a>
I know how to get the href from an anchor take:
alert($(this).attr("href"));
But how do I get the text from the anchor tag, i.e. how do I get "Google"?
...
Hi,
I have a dropdown list, what I would like to do is assign values to the items in the drop down list and then display these values in a label depending on which item is selected..
Here is what I have already:
<tr>
<td width="343">Package*</td>
<td colspan="4">
<select class="purple" name="package">
...