find value of cell value using jquery
Hi I want to find the value of above cell in a grid view using jquery i tried following code if ($.trim(cellText) == "0") { $(this).css('background-color', 'Red'); var $this = $(this); var $tr = $this.parent(); var col = $tr.children().index($this); alert(col); } above code returns only index value . ineed the value of that cell how to find out regards Baiju
This is the code Im working with, the problem here is i should get content from server and show it in Dynamically created Div and php pages are working correctly
$(document).ready(function(){ $(function() { $('#custom_timings_section, #custom_timings_section1').attr('disabled','true'); $('#change_timings').change(function(){ if($('#change_timings').val() == 'custom_timings_select') { $('#custom_timings_section, #custom_timings_section1').removeAttr('disabled'); } else { $('#custom_timings_section, #custom_timings_section1').attr('disabled','disabled'); } }); }); $("#addcategory").click(function ()
Why not use SVG sprites?
Hi I am new to JQM, doing markup/CSS work on a project. Looking into the way JQM deals with icons a question came up: What where the reasons for going with base64 encoded images instead of a sprite? According to this article the images appear significantly slower (apart from not beeing cached): http://www.mobify.com/blog/base64-does-not-impact-data-uri-performance/ so I was just wondering what is the gain... Thanks
JQM theming and themeroler: More button variants
Hi, I am new to JQM, doing markup/CSS on a project. In my research I bumped several times in to urgent recommendation to use the themeroler as a best practice. But the themeroler seems very limited to me. Mainly because, since allmost everything is a button (selects, buttons, collapsibles), if I want to styles these differently, I need to create a new swatch for each. That seems very inefficient. Am I missing out on something or is the themeroler not really the way to go?
ajax response not comes in ajax form submition with jquery validation
My code is this in which form submition is working throgh ajax with jquery form validation but response not working.. my ajax code : $("#save_form4").validate({ rules: { name: { required: true }, min_salary:{ required: true, number: true } }, messages: { name: { required: "Job Title is required." }, min_salary:{ required: "Min Salary is required.", number: "Enter Valid Amount." } }, // the errorPlacement has to take the table layout into account errorPlacement: function(error, element) { if ( element.is(":radio")
grid Column freeze in asp.net
hi, I want to freeze the column in the more than 3 gridview in asp.net. for example first grid 2 column, 2nd gridview 2 column, 3rd gridview 3 column and one more thing i want freeze column in the horizontal only but we need to scroll vertically...
Can not load custom JS added on custom master page of sharepoint online, on MDS Enabled site
I have created custom master page and added custom js to that master page using scriptlink tag.But once MDS feature is enabled on site, master page can not load custom js, it gives js load error on the same page. Regards, Amarja
I am having trouble calling focus() on a JQuery EasyUI plugin for the combobox; how do I do this?
I am having trouble calling focus() on a JQuery EasyUI plugin for the combobox; how do I do this?
cycle2 issue
Hi, I have two main div's rightDIV and leftDIV, in the leftDIV I have a Listbox control that list categories, when user click a category I make an AJAX call to server, get the images and start cycle using cycle2. This works fine. When I select a different category I get an error saying - "JavaScript runtime error: Unable to get property 'slideCount' of undefined or null reference" Any idea why ?
ajax ruins .each or .wrapAll (jQuery 1.7)
I have a list of (Drupal) teasers that have a read more link after each one, and separate divs of the full complete text I need to show when the read more link is clicked, following the links. Here's the JS: $('.comment-teaser').each(function(){ $(this).next('a.read-more-link').andSelf().wrapAll('<div class="teaser-n-link"/>'); }); $('a.read-more-link').live("click",function(e) { e.preventDefault(); $(this).parent('.teaser-n-link').slideUp(400,function(){ $(this).parent().parent().find('.show-text').slideDown(400);
jQuery.extend is not a copy for Object!!!
var A = { info:{ name:'a' } }; var B = extend({}, A); B.info.name='b'; console.log(A); // A.info.name is change to b
How to use jQuery in Refresh Monkey? (Chrome plugin)
Hi all friends. Sorry for my bad English. I am using Google Translate. My question is this: I installed a plugin for Chrome called "Refresh Monkey". Monitor websites and warns you when the content changes. This is a screenshot of the plugin: As you can see where I marked in red, tells me to receive notices of specific things I need to put "jQuery commands." By giving "jQuery" sends me to this website: http://api.jquery.com/category/selectors/ Here I appear "command line". I do not know what to do
number of rows inside a div using jquery
Hi Guys, I wanted to find number of rows used inside a div. I used below code but it is not working. Jquery Code =========== $(function() { var addDiv = $('#bkup_docs'); var i = $('#bkup_docs tr').length + 1; alert(i); }); HTML ==== <div id="bkup_docs"> <tr> <td align="right"></td> </tr> <tr> <td> </td> </tr> </div> Here I am getting output as 1,actually it should be two. AM I missing something or I cannot do like this. Your help is well appreciated.
Datepicker: maxDate and specific end date?
I want to set the datepicker to allow 90 days from now (maxDate:'+90d') but for that to not exceed Dec 31st. Is this possible? Thanks
first / last page and zoom
Hi everyone, I have a webpage: http://goo.gl/36bcwm I want to add first / last page and zoom button to the web page to read book easily. I don' t know how can I add them? Could you help me, please? Thanks for your help Regards
Issue with jQuery Mobile Documentation
It seems that the directory for the Transitions documentation has been replaced with the directory of its parent. Go to: http://demos.jquerymobile.com/1.4.2/ and attempt to click on the Transitions link on the bottom of the sidebar. It takes you to the same page that you were already on, but the url now reads: http://demos.jquerymobile.com/1.4.2/transitions If you click transitions again, you get a 404. It seems that the directory for the 1.4.2 Demo was copied into the Transitions directory and
JQM offline search feature
ability to search pages and get results in JQM phonegapped app. I created a app that allows a user to see a training manual. Wanted to know if a search feature can be added that will work offline. User would like to search various words and have a results page. i am new to JQM (4 weeks) This is the only thing so far that has me stumped. Thanks Griff
Trying to Use Cycle 2
Hi, I am trying to run the Cycle2 jquery plug in.I am using wordpress. Here is my code: <script type="text/javascript" src="http://traviedigital.com/wp-includes/js/jquery/jquery-1.11.1.min.js">/script> <script type="text/javascript" src="http://traviedigital.com/wp-includes/js/jquery/jquery.cycle2.min.js">/scipt> <script type="text/javascript"> $(document).ready(function(){ $('#myslides').cycle() }); </script> this is placed in my header inside the <head> tags and before the php call for the head
How to call iframe parent function using jquery?
Hi, I'm after something like this - only working :) jQuery('#ilightbox').top.myfunction(); Can Somebody help me pleaes?
submitting individual tabs in jquery tab
With jquery tabs that have 2 tabs, is there a way to have a submit button in each tab and when clicked, only data pertaining to that tab is picked up and how would I know which submit function to call?
Open external webinterface inside a JQM page
I want to load an external webinterface from my HTPC inside a JQM page. The webinterface was build with JQM. If it's possible, could somebody explain me how to do it? thanks in advance for every replie
Multiply second value from array to dropdown selected
I have created a row of drop downs with each option having its own value, as usual. But what I need to do is multiply a second value per drop down to the options values. I understand the process of whats needs to be done, but I don't know where or how to add this extra figure in. Her is it in action in this fiddle - http://jsfiddle.net/c9r48/8/ In the first dropdown for instance it has a label of 'label 1' the options values of: label: 'Label 1', value: '400', options: { '12': 'Monthly', '6': 'Bi-Monthly',
Anglo jquery?
Hi, Has anyone heard about Anglo jQuery? I was stumped when somebody asked me. Any website for more inputs? Also, how many of these kinds are there? (if et all) Thanks in adv...
Set focus on a div after form is submitted
Hello all, I've been working with a fairly simple contact form that emails info to a client when it's submitted. within the <form></form> tags, i have <div id="response"></div> which is where my "success" or "fail" messages appear after the form is submitted. I would like to set the focus on that div after the form is submitted but can't seem to work out how to do that. So far i have tried adding onSubmit="$('form #response).focus(); to the form, but it isn't doing anything. I've also tried: <script
jquery mobile - List item to detailed view page
I have a page which contains the list item. I need to fetch the data from my server on list item click and need to show the the detailed data on the second page. For each list item click i need to show different information. <!-- First page --> <div data-role="page" data-theme="c" id="home-page"> <div data-role="header" data-iconpos="left"> <h1>Visit Kerala</h1> <a href="#link" data-role="button" data-icon="home" data-iconpos="notext">Home</a> </div>
How to remove the <option> from selector <select> using JQuery
Hi, In my JSP page I have a drop down values associated with different id's, now I needed to remove some of the values from that drop down based on their id's which I would get it from a database. Can anyone please help me with the query statement that would be created run time to remove an option. Thanks!
jQuery accordion form with validation
Hi, I wondered if anyone could tell me how I'd put together a jQuery accordion form with validation that works like the screenshot below. Would appreciate any advice. Thanks
Orderby data in an array
Hi All, I have a grid. I want to orderby(sort) data based on two columns. EmpID EmpName Dept Date Of Joining 1 ABC D1 1/1/2011 2 DEF D2 1/1/2011 3 GHI D3 2/1/2012 4 JKL D1 9/1/2012 5 MNO D2 6/1/2014 I want to sort this data in two ways. First it should be sorted by "Date Of Joining" - DESC and then grouped by "DEPT". All employees of same dept should be grouped and displayed with Date of Joining as highest. I have the entire data in an array. I want to achieve this using jQuery. Please suggest Thanks
Using Droppable+Accordion Jquery widgets to create a multi-selector
Hello, I am pretty new to Jquery ( and to JavaScript at all, in fact), but I think I am beginning to grasp the general idea, at least as far as the UI part is concerned. I hope you can help me to get from crawling to running I guess... anyways... I am trying to build a UI for fields/values selection. In principle the users have to assemble a list of fields for the query and then possible values for each field ( it brews down to a sql select statement, something like "select... where field1 in ( f1v1,f1v2,f1v3...)
Jquery Lavalamp sub menu
I am trying to add a submenu to a Jquery lavalamp, but i dont know how. This is what i made so far. The only thing left i think is to set hover over submenu items. code: HTML: <ul class="lavaLampWithImage" id="lava_menu"> <li><a href="#">Menu 1</a> </li> <li><a href="#">Menu 2</a> <ul class="sub-menu"> <li> <a href="#">Sub Menu 1</a> <a href="#">Sub Menu 2</a> <a href="#">Sub Menu 3</a> </li> </ul>
embed dropdown into html form using jquery
Im trying to embed a drop down to a form using jquery, and the dropdown itself isnt appearing. The idea is that a user clicks a link and this function is called and the form is created, im far off where i need to be but im working with little steps and each day is a challenge as I'm sort of learning on the go. hopefully you will see what im trying to do [code] <p><a href="#" onClick="active_tiptip()">Form Click</a></p> <div id="test" style="position:relative; width:100%; height:200px; background-color:#FF0000;">
sortable IE 7 bug when scroll bar
I'm having a problem using jQuery UI - v1.10.4 for sortables. In IE7, when a <ul> becomes too big within a <div> and scrolling is availble, I am unable to sort the list. When I try to sort it,It not works (i think problem in getting offset height of place holder). Anyone have seen this before or have any idea what the deal might be? It works fine in FF and other browsers. Cheers! sample: <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery UI Sortable
Jquery Validation Plugin equalTo Issue
I am using the jquery validation plugin from http://jqueryvalidation.org/. It's working okay, except I am having an issue with the equalTo validation. The code below will execute the "required" portion, but not the equalTo. Any thoughts? <input type='password' name='cPass' id='pass3137' class='styled btn-block' placeholder='Password' required> <input type='password' equalTo='#pass3137' name='confirm_cPass' class='styled btn-block' placeholder='Confirm Password' required>
Jason object member access issue
When I try to access the member of jasonp object(val.pc_eventDate) it gives undefined error. But the val object 12 member and all members has values. $.ajax({ type: "GET", url: URL, dataType: "jsonp", jsonp: "callback", jsonpCallback: "GetAppointmentCallback", success: ServiceSuccess, error: ServiceFailed }); function GetAppointmentCallback(json) { $.each(json.GetAppointmentsResult,
Can we add inventory to an auto-reply?
Hello all, We have an email template that we want to send to web users once they have filled a lead form. The email will contain the details of the product they were interested in (which they will have indicated in the form), along with a list of current inventory matching that product. My question is, how do I go about creating an inventory box or list in the email template that will automatically update itself with appropriate items each time it is sent out.
Dynamic JQuery query generation to “disable” a drop down “option” in JSP
I am working with Servlet and JSP. I have a JSP form in which I have a drop down list with `id's` associated with it, as of now I have three options in the drop down list. HTML CODE-- <form id='form' method='post' action='/test/'> <select id="type" name="typeOne"> <optgroup id="first" name="First" label="FirstDiv"> <option value="value1" id="001">valuee1 count</option> <option value="value2" id="002">value2</option> <option value="value3" id="003">value3 </option> </optgroup> </select> </form>
Apply autocomplete to multiple input fields
Hi All I have an issue for a feature I'm creating. Basically I want the user to add their specialities to their profile. I have created a form and have got the page adding additional fields by clicking a button. See the JSFiddle code here: http://jsfiddle.net/wowdesignsolutions/X5Efu/6/ The issue I'm having is getting the "autocomplete" to work on the new input fields that are created. I want ALL the new input fields, and the original one, to use the same autocomplete. The actual autocomplete list
Content not load on page load.. sometimes
Hello! I'm using rest to get som images from a data source. The REST works just fine. I using a jQuery Image slider library as well that also works just fine. However to combine this two seems a bit tricky becase if there seems to be some issue with the sequense the stuff loads. I tried to change order and to use doc ready on the rest but it's not perfect.. The issue is that the images dont show up on the page until I hit F5 and reload the page.. but just sometimes, lets say it works 6 times of 10
jquery ui and Option tags
I have a select box and then several options, all with titles. I can get the tooltips to work as far as the select box itself, and then the titles when I mouseover the options are just normal small print. select id="requesttype" name="requesttype" title="Request Type"> (works) <option value="default" selected>What can we help you with?</option> <option value="Broken Functionality" title="busted" >Broken Functionality</option> (doesn't work) I have <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css"
jQuery with windows mobile ?
I'm trying to use jQuery 1.11.1 with Windows Mobile 6.1 and IE. The platform is Honeywell Dolphin 9900. I seems not working at all. Do I have a chance to make it work with this configuration ?
Next Page