Show first line of a paragraph
I have a DIV with a multi-line paragraph. Is there any way (maybe using jQuery) to only show the first line of the paragraph and hide the others? ...
I have a DIV with a multi-line paragraph. Is there any way (maybe using jQuery) to only show the first line of the paragraph and hide the others? ...
How do I change the size of an icon from the JQuery theme builder? The icon is too small to use. Setting height and width is wrong... ...
What is difference between $(".anything").click() and $(".anything").bind(click) $(".anything").click(function() { }); $(".anything").bind('click', function() { }); ...
When animating a width toggle, it's not animating the padding, so i looked into .outerWidth() but i'm not exactly sure how to implement this... $('#shareheart').click(function(){ $('.share-text').animate({outerWidth: 'toggle'}, 2000) }) ...
I am running the jQuery Cycle plugin and noticing that IE is applying background colors to what should be transparent elements. I assume this is part of IE's terribly handling of PNGs and alpha transparency, but I'm not entirely certain as to whether I should be trying to modify the plugin or simply scrap it in favor of something that ha...
This is how I instantiated the modal, with 'btnModalAddGroup' as the div that acts as a button: <div id="btnModalAddGroup" class="button">Add New Group</div> $('#btnModalAddGroup').click(function() { $("#addGroupModal").modal({ appendTo: 'form', escClose: false, persist: true, onOpen: function(dialo...
Hi, When I click a button I want to show or keep a hidden button hidden depending on whether the device has an internet connection or not. I have googled some but haven't found any really good example yet, do you know of any? I want something like $('#btnPrepareSynch').click(function () { checkConnection(); }); function checkConnect...
Right now I'm getting this strange problem where when I use jQuery's animate() function on a <div> it removes the ability to scroll. I'm adjusting the height with animate(). This problem only comes up with IE and works fine with Chrome and FF. Below is my css class for my div div.fullscroll{ height: 65%; width: 75%; overflow-x:...
I am trying to repeat something inside a jquery function. I tried a for loop, but it seems it doesnt like the syntax. for instance i have the variable var number = 2; now i have $('tr').html('<td id="'+number+'"></td>'); what i want to do is loop from 0 to number (0,1,2) so that in the end i end up having 3 . Thanks ...
I have an AjaxControlToolkit.AutoCompleteExtender control attached to a textbox, and three radio buttons. When the user selects a radio button, the service method used to retrieve the values listed in the AutoCompleteExtender is changed, as follows: $("#radioButtonList input").click(function() { var selectedValue = $(this).val(); ...
How can i display a div in a perspective view or with a vanishing end. please refer to this image http://pinoywebcentral.com/wetwetwafu/vanishing-point.jpg thanks in advance ...
Hi, i have an asp.net mvc 2 application, and have some jquery that defines behaviour of two dropdownlists. When one changes, the other is populated with filtered data. After much furor, i have the jquery working, confirmed by firebug debugging, but my dropdownlist is not refreshing. This is the jquery <script type="text/javascript"> ...
Here's how you get one css attribute using jQuery: $('someObject').css('attribute') How do you get them all? (without specifying and preferably in the following format so it can be reapplied with jQuery later): cssObj = { 'overflow':'hidden', 'height':'100%', 'position':'absolute', } Thanks!! EDIT...
Hi, I am getting selected date as in Thu Oct 14 2010 00:00:00 GMT 0530 (India Standard Time) format. I want to convert this in dd/MM/yyyy format. What have to do in jQuery? ...
I am using meioMask – a jQuery mask plugin to put time mask in a textbox. Here is the JsFiddle. Its working good. But I also need to to put hh:mm in the textbox, to let user know what to enter in the textbox. How to do this. EDIT: I also need to put am/pm in the mask. and I need 12 hrs time format. ...
when i send json. it may be have something wrong. server does not accept request and give error 500 even i seding a json he return a error page in json. how i can check that i have 500 error in json when as result after my json is gone to server. how i can check that server return 500 error i am talking about .NET ...
I initiate two buttons (I'm using the JQuery built in CSS themeroller): $( ".upArrow" ).button({ icons: {secondary:'ui-icon-circle-arrow-n'} }); $( ".downArrow" ).button({ icons: {secondary:'ui-icon-circle-arrow-s'} }); I want to be able to toggle between these two icons when clicking the same button, and somehow switch between the .u...
I have searched high and low for this on this site and the web Is it possible to dynamically create previous and next buttons in a jquery dialog box? I have a list of links, and I would like to click on a link and have a dialog box open. In that dialog box would have a previous and next button that when clicked on would close the curre...
I have a PHP page with multiple forms, some of which submit to an iframe (separate iframe for each form) to allow for ajax-like file uploads. I don't want the user to have to click a "Submit" button after selecting each file, so I am submitting the form using jQuery's .submit() function inside of a .change() event on the file input elem...
hi i have following code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr"> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js" type="text/javascript"></script> <style type="te...