Iam using auto Complete method and spilliting the label and value
$("#txt1").autocomplete({
minLength: 1,
source: "/abc/ajax.php?param1=''¶m2="+$("#txt1").attr("value"),
select: function(event, ui)
{
var label= ui.item.label;
var value= ui.item.value;
var Arr = label.split('-')...
Hi all, could someone please explain why the following code is throwing an error?
// JavaScript Document
$(document).ready(function(){
$(".port-box").css("display", "none");
$('ul#portfolio li a').bind('click', function(){
var con_id = $(this).attr("id");
if( con_id.length !== 0 ) {
$.get('./act_web_d...
I have a start and stop textbox field which triggers jquery calendar. I want to know whether it is possible to achieve when I select a date on the start, will populate the same on the stop?
...
For a text input defined as:
<input type="text" name="Email0" id="Email0" value="1st Email" /><br />
If the user changes the value of that text box I simply pass it along with the form submit...if they _haven't changed it - i need to pass a value of 'null'.
$('#frmSignup').submit(function () {
if (Email0.value != Email0.defaultVa...
I've got a jQuery plug-in to generate accordion-like menus. However, my slideUp() and slideDown() functions seem to be happening simultaneously.
Ideally, I would like all expanded sub-menus to slide up, and then the selected menu item's sub-menu slide down once that's completed. My code is as follows:
jQuery.fn.accordionMenu = function...
Greeting.
How to enable or disable asp.net DropDownList control using jquery when checking an asp.net checkbox.
So I have I have an asp.net checkbox when I check it I want to enable/disable a DropDownList.
Thank you,
...
I need to be able provide a table on web page with one row which has a two drop down list and one textbox and the user's should be able to add any number of rows they want. I need to to this using jquery so that i can avoid post back. Is this possible to be done in Jquery and if it is possible i was looking for some example which will be...
Hi there, can anyone explain the following to me. I have two JavaScript functions defined in global scope as follows:
var foo = function () {
var that = this;
that.toString = function () { return "foobar" };
return that;
}();
alert(foo.toString());
var foo2 = function (foo) {
var that;...
I need to loop through all checkboxes that are inside a div tag with id #abc123
How can I do this?
$("#abc123").foreach( ???? )
Update
my html row looks like:
<tr>
<td><input .../> </td>
<td>234</td>
</tr>
I need to add the value of the <td> into the ID of the checkbox.
Would I just get the parent, then ancestor it somehow?
...
Everything works perfectly fine in debug but silently blows up on the live server.
Here's my jquery which checks to see what is selected in a dropdown box on the page:
<script type="text/javascript" >
$(document).ready(function () {
$("#Schools").change(function () {
if ($("#Schools").val() != "") {
...
If I am traversing the DOM using jquery, is there a way to output the type of tag I am on?
the tags' dont have ID's so I can't do:
.attr("id")
I am thinking of just alerting this value so I know roughly which tag I am on.
...
I have my page all set up perfectly and the height & width's are all working great. But I have a draggable element and if you drag it to the side/corner of the page, it starts shrinking the whole page instead of cutting off the element on the edge. The element is always visible where ever your dragging, its just the rest of the page shri...
Hi everyone! I've implemented the jQzoom plugin in my Joomla based website. It works great on all browsers but IE and Opera, both latest versions. It seems that it's not getting the mouse position correctly. Although I've tested the same layout and options on a non joomla site, everything was fine, so I really don't know. Here's the way ...
I need a jquery datepicker in 24 hour pattern.
mm-dd-yy hh:mm:ss
08-20-2010 14:45:33
I found so many date pickers in jquery , but no one is giving time!!!
Any body know about both date and time picker.??
jquery jquery ui anything
...
Languages: PHP,JQuery,MySQL
The question is "simple", I have a triple dependency with php and jquerys, the code works great, for inserting new information, but now I would like to make an update, so I need to load the current information first and I don't figure it out how to, I add some parts of the code, if any more parts needed a...
Could someone please tell me what is wrong with this code? It works fine in IE8 but not in FF3.
$.get("http://google.com/", function(data) { alert(data); });
It shows me the alert window but it's empty.
...
When UL.chapters is 'slideDown', have the first 'chapters LI' animate the 'left' property to 20px, then animate back to 0px, then have the second LI do the same thing, then have the third, and so-on. with my code, they all animate directly after UL.chapters slides down, how do I make them do their animation 1 at a time, with the second n...
Is it possible to create a certain number of 'buttons' based on the number of images with jQuery?
example:
<ul class="gallery">
<li><img src="example-one.png" /></li>
<li><img src="example-two.png" /></li>
<li><img src="example-three.png" /></li>
</ul>
Is there a way to create three nav buttons without adding any more htm...
I have a form that uses a JQuery Json post. I have 10+ textboxes on the page. I have variables passed the only way I know... is there another way to pass multiple variables?
$('#nameSubmit').click(function() {
var status = document.getElementById('Select2').value;
var lob = document.getElementById('LOB').value;
var lName =...
I have a form and a div within that form that I am using for the contents of a jQuery dialog. My goal is to have the dialog pop up, the user enters some information in the text boxes and textareas there, then submit the form and have that data available to my code behind, but then be able to re-open the dialog (the page stays up after su...