Add selected dropdown to my textbox .
hi to all i want to add my selected dropdown list item to check box.and selected item to be hide. like this http://www.ajaxshake.com/demo/EN/1105/9e1d4db1/create-select-boxes-user-friendly-chosen.html
Uncheck the checkbox using jquery
I've an Textbox in which the autocomplete is enabled using jquery ajax.if i select one value means it have to check the corresponding checkbox.This one works me properly.If i delete that value means it have to uncheck that checkbox..Help me out please..My Jquery code is $('#prgrp').on('keydown', function (evt) { var txt = $("#prgrp").val(); var valueArray = txt.split(';'); var valueSortArray = valueArray.sort(); for
Best website to learn jquery
I am new to Jquery. Please suggest me the best website where i can learn the subject in depth easily
show alert message to textbox
hi to all i want to show alert for my textbox. i.e i am having two textboxces completion of first textbox that should not enter into second text box if user enter we have to show alert message...
Problem with siblings & children
Hiya all, i'm fairly new to jquery but to tbh i feel like a non-swimmer in the ocean but i *have* to get this solved and working. It's a hierarchic nested menu which i generate in a shop generated but i'm having problems toggling active clases to siblings/children. On page load i have a menu as such: <li class="level1">link1 <li class="level1">link2 <li class="level1">link3 <li class="level1">link4 <li class="level1">link5 If i click on link4 i get <li class="level1" class="active"><a>link4 <ul>
Fill in the blank using jQuery
Hi there, I'm new to jQuery and looking for existing plugins to get an idea for my primary school class (i'm a teacher) working. I want to make a fill in the blank exercise for my students but don't know how to get started. When the student clicks on "controleren", I want jQuery to check the value of the field and compare it with the correct answer. Can someone help me and point me to a working example or a plugin that has the features I need? Thanks!
Querying SQLite existing database using jQuery
Hi there, I've a existing already populated that I want to query and display result. Here is my code and it is not working: http://plnkr.co/edit/XiAAPdiOj9A1YpYuDTwe?p=preview I'm getting uncaught ReferenceError: refreshtest is not defined index.html:209. that is for line gettest( refreshtest ); I saw examples and in most of the examples, after opening the database, table is created and data is inserted by using a form. Then queried. But I have already populated database, so I don't need to create
Passed object in post ajax
Hello. I'm trying to pass data. var favorite = {}; favorite[videobody.id] = item.statistics; So, at the moment i receive similar object: Object{} 1 Object { viewCount= "88" , more... } When I passed data to ajax and result is empty or non-existing object. $.ajax({ url: "/admin/songs/ajaxViewers", type: "post", data: {favorite:favorite}, success: function () { // location.reload(); }, error: function () { alert("PROBLEM"); } }); How to rewrite to work?
help to parse data into cells
I'm trying to parse value for each row. It's only working when i put alert inside for loop. this is my code $(document).ready(function() { var rows = document.getElementById('customerTable').getElementsByTagName('tbody')[0].getElementsByTagName('tr'); for (i = 1; i <= rows.length; i++) { value=rows[i].id; //alert(value); $.ajax ({ type: "POST", url: "getdata.php",
short-circuiting variable declaration .
hey guys, was just going through modal.js and came across the following variable declaration , var doAnimate = $.support.transition && animate so does the above mean that , if $.support.transition elavuates to true and then animate evaluates to true doAnimate will be true and in all other cases doAnimate will be false ?
Understanding custom events on modal.js
Hey guys ! good morning . Was just going through modal.js, and saw the following code : var e = $.Event('show.bs.modal', { relatedTarget: _relatedTarget }) i understand its custom events or rather custom namespacing, but whats with the 2nd parameter ? relatedTarget: _relatedTarget , That part is a bit tough to understand . can somebody tell me vaguely whats happening ? I am not expecting a 100% spot on answer . You can find the same line of code here , line 53. Thank you. gautam.
Adding style for a particular class through jQuery
HI, I am trying to hide "a href" based on the title. The controls are created dynamic. <a title="Home" class="static menu-item ms-core-listMenu-item ms-displayInline ms-navedit-linkNode" href=""> <span class=additional-background ms-navedit-flyoutArrow> I mean, for title="Home" in the below span , i want to add style=display:none". How to achieve this using Jquery? Thanks
QUnit - Standard reporter interface - Gsoc 2015
I am computer engineering undergraduate in University of Peradeniya , Sri Lanka. and I am interested in this project idea. and I looked at the github and there was no conversation about it after sep 2014. In github they talked about mocha and Jasmine . So I need some guide through this. any help would be great
accordian for showing text
hi jquery seemers. i create accordian but by default it is showing the available contents on page load.and also sliding is not working correctly. idont want to show gaps in sliding and if i click on one link that is show all available contents in that menu http://jsfiddle.net/harithareddy/q2L3rbmo/
I'm building in a password protected folder, jquery ajax loader takes over anchor & won't load
Hi I'm an experienced web developer but I've not used jQuery before. I'm developing in a password-protected directory on a shared host. I've set up a mobile-style menu. The links that are outside the protected directory work fine, the ones to pages inside, don't. As far as I can tell, that might be because jQuery is using Ajax to load the page .. why, it's just a link? I've tried a few things to switch it off and nothing's worked so far. On click, I end up looking at a grey disc, coded thus: <div
How to solve Uncaught TypeError: undefined is not a function
Hi, Can someone help me understand how to solve the error mentioned in the title? I have a dynamically generated select element with a couple of option values inside. Next the select element, is a button. When I click the button, I want jQuery to tell me whether or not I have selected only one option value or multiple values (array or not). This is the jQuery code: <script type="text/javascript"> $(document).ready(function() { /*Detecting events on dynamically generated elements
accordian slide up
hi to all , i tried the accordian it working correctly when ever i click on my tab it is showing all available list items. if i click on another tab it shows available list items on that tab and also previous tab list items. i want to hide the previous tab list....... hear is my code http://jsfiddle.net/soreddysirish/krcvmhqq/ i want like this http://viralpatel.net/blogs/create-accordion-menu-jquery/
Help with Date and Time Validation
I got an old Javascript validation that I need to convert to jquery. This current validation blocks 6/3/2015 1:15:20 AM. Basically, it looks for 2 Digits on dates and time, otherwise it fails. I need a jquery function that will replace IsDate function (below) and can validate 2 digit or single digits date and time , with or without AM/PM. Need help if I can fit in the jquery validation inside IsDate function, using the same structure. In otherwords it should pass 6/3/2015 1:15:20 AM 6/3/2015 1:15:20
Set focus on alert message ok button
Hi, I am using the below code to show the alert message string lstrScriptMsg = "alert('" + astrErrorMsg + "');"; ScriptManager.RegisterStartupScript(this, GetType(), "Alert", lstrScriptMsg, true); During my Page flow I used to show this alert message whenever PDF files are generated.But the actual Problem is This alert message getting displayed behind the PDF file.So I thought of making the alert message box should be the Top of the Current window. So can We get focus on
unicode entered in textfield is not updated using ajax
Dear All following code uis used to update value stored in textboxex a. ename b. mname var url= "abcdfill.php"; data = { ename: $('#ename').val(), mname: $('#mname').val() id: sid[1] // record id } $('#'+savediv).load(url,data) ; and abcdfill.php had php code to update the record ename and mname However if we enter the text in unicode, like संपादकीय (in devnagari unicode) and try to update the data is filled up with unreadable data. I want data like #0545#0545#0343#1452 instead
need help to prepend() to text box
hi to all i am having two text boxces if i enterthe values in one text box that is shown in starting of the text box in reverce order <input type="text" id="tbox1"> <input type="text" id="tbox2"> $("#tbox1").keyup(function() {$("#tbox2").val($("#tbox1").val()); }); i want to show my text in first
load error in ajax
hi to all i new to ajax i tried this one but this is not displaying the my text file which is located in my computers desktop http://jsfiddle.net/jefbxvzo/
concatination in JS failing
hey guys i have the following code to dynamically change the content in a div : var pg_prefix = 0; $('#next').on('click' , function(){ pg_prefix++; if (pg_prefix >= 2) { var pg_prefix = ''; } console.log('brands' + '-' + pg_prefix); // if console.logged , this give me "brands-NaN" // instead of "brands-1" or "brands-2" $('#brands').load('brands' + '-' + pg_prefix); }); my problem is my concatination is't working : 'brands' + '-' + pg_prefix i get the following results instead of what i want . what
Gsoc 2015 QUnit - Better diff output
I am interested in this project idea. But I am struct in understanding the project. any Help would be great
Insert a paragraph, Hide content.
I need to make a function that when I click a button it inserts a paragraph into a document. I also need to write one that when hovered over a button it reveals content but when the hover is lost the content is hidden.
Display alert based on user's selection with radio buttons
Hi, I have been having problems with my jQuery function which should display the appropriate message when the user selects a certain radio button. I am trying to achieve this using a conditional statement. When the user selects the first radio button they should see the message "test45", if they select the second radio button, they will see the message "test1". Here is my code: function test(){ if ($("input:checked")){ window.alert("test45"); } else if ($("input:checked")){ window.alert("test1");
Side panel -> change click to hover.
Welcome! I have a script on the sliding side panel: $(document).ready( function() { $(".slide_button").hover(function () { xx = $(this).attr('class'); if (xx=='slide_button') { $("#my-panel").animate({ left: "0px" }, 500); } else { $("#my-panel").animate({ left: "-220px" }, 500); } $(".slide_button").toggleClass("cls"); }); }); It opens when you click the button, and I would like that this action was you hover over it (hover), how can I get one? I tried .click replace to .hover, but then I still
Menu solution
I need help how to create a menu that 1. when loaded on the page is showing divs css with colour 2. when mouseover all divs except the one that was hovered turns to grey what is the best way to do this? thanks
alert
hi to all, i want displaying text with in the form only ( in javascript we use document .write() . to display text in a page $(document).ready(function(){ $("p").click(function(){ if ($("p").parent().is("div")) { alert("Parent of p is div"); } }); }); <body> <div> <p>Click me to find out if I my parent is a div element.</p> </div> </body> i dont want to show my text in alert box .
Server Architecture for Mobile Website development using the JQuery Mobile.
I am new to the mobile applications; I would like to understand the server architecture/setup required for the Mobile Website development using the JQuery Mobile. If you can share any kind documentation or simple architecture diagram that will be helpful. Thanks in advance. Regards, Muthu
How to add/change the ease method to a SlideUp() or SlideDown() function
Hi, I'm new to the forum. I've taken time to search through the forum on the look-out for a similar topic, but have not found one. I would like to add or change the slide effect by adding a easeInExpo to a SlideUp() or SlideDown() function jQuery(function( $ ){ var container = $( "#container" ); $( "a" ).click(function( event ){ event.preventDefault(); if (container.is( ":visible" )){ container.slideUp(
Uncaught TypeError: undefined is not a function external.js
I get this in console: Uncaught TypeError: undefined is not a function . I've tried to put functions between ;(function($){ and })(jQuery);, no succes. jQuery is included in header and external.js in footer. What should I do?
depend rule
Hi, I have form with the several input fields . The field name partNo with value of being entered from the customer with either of of the value below. 28D1G1-213C11 H000S0 78E1K0-298A11 J000S0 20D2K3-238C21 G000S0 52D1J0-274A11 E000S0 Depends on the value above and takes left 14 characters first one is H scond one is J, third one is G fourth one is E <form action ="" method="post"> partNo: <input type ="text" name="partNo" id="partNo"><br> field 1: <input type ="text" name="field1" id="field1"><br>
Jquery bug
jqueryui version 1.11.3 doesnot work with internet explorer
animation
hi to all. i facing small problem in animation this is my example <html> <head> <style> #mydiv { border: 1px solid green; background-color: lime; height: 46px; width: 121px; } </style> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script> $(document).ready(function(){ $("#mydiv").click(function() { $(this).animate({height:"300px",width:"200px",'backgroundColor':'red'}); }); }); </script> </head> <body> <div id="mydiv"> hi this is inside div </div> </body>
checking if e.target is a child of a constant element
Hey guys , i am trying to basically write a Jquery programme that tells me when i click on an element weather that element is a child of another element(parent element , and in my programme , the parent element is a constant ). so heres what i got so far . HTML code : <div> <p>lalalalalalalalalalal</p> <span>blaaaaaaaaaaaaaaaaa</span> </div> now the Jquery : $(document).ready(function(){ var str_dv = $('#la'); $('p').on('click' , function(e){ if (!str_dv.has(e.target).length)
Trying to replace a CSS rule dependant on the current winow size.
I've been trying to create a script that loads an appropriately sized background image dependant on the window size. I am able to confirm the screen resize is being registered but the CSS doesn't seem to be updating, at least the image is not being replaced ! Can any one see where I am going wrong ? css #bg { background:url(img/backgrounds/1920.jpg) no-repeat center center fixed; /* default image to load */ -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size:
Help with Basic JQuery slider - markers
Hi, I am using the "Basic jQuery Slider plug-in v.1.3" to show rotating images in my aspx webpage. This works fine. There are markers oval shaped in the left of the page. I want the currently active image marker to be highlighted and the rest be transparent. There is a function as below in the plugin: var conf_markers = function () { // create a wrapper for our markers $m_wrapper = $('<ol class="bjqs-markers" style="position:absolute; width:31%; left:0px !important;bottom:10px
Using CSS To Make <a> tag bold in example code snippets.
Hi. I working through the examples provided at http://learn.jquery.com/about-jquery/how-jquery-works/, but I cannot seem to get $( "a" ).addClass( "test" ); where <style> a .test { font-weight: bold; } </style> Is the complete source file available so I can compare it to what I'm doing locally please? Thanks In Advance for your response.
How create a folder in local system from client side using jquery?
Hi All, How create a folder in local system and create files in that folder and need to open that files using Jquery from client side.There is any option or sample code or any idea about it?
Next Page