jQuery working or not?
Hi all, I have just started using jQuery But I'm not sure if it is working or not. I am trying to hide a dive box as per this tutorial (https://www.youtube.com/watch?v=hMxGhHNOkCU) but it's not happening - whatever I do. <style>#movebox { width: 100px; height: 100px; border: 5px solid black; position: relative;}</style> <div id="movebox"></div> <script> $(document.ready(function() { $("#movebox").hide(1000); }) </script> Annoyingly jQuery seems to be working and likes this code <script type="text/javascript">
Adding an Attribute to a Clicked Element on a Page Being Displayed in an Iframe
Hi all, I am trying to add an attribute to the clicked element on a page that is being displayed in an Iframe. Below is my code inside the document ready function but it is not working: $('#Iframe').load(function () { $(this).contents().find("body").on('click', function (event) { var a = event.target.tagName; frameContent = $("#Iframe").contents().find(a); $(frameContent).click(function (e) { if ($(e.target).attr("contenteditable")=="undefined"){
Quando eu clicar no botaoMensagem tem que aparecer a data dentro do modal
Bom dia, . conforme a imagem que te mandei anteriormente. <html> <head> <title></title> </head> <body> <form id="form1" runat="server"> <asp:ImageButton ID="botaoMensagem" runat="server" ImageUrl="~/download (1).jpg" Width="30px" /> </form> <div id="dialog-confirm" title="Confirmação"> <div id="data"></div> </div> </body> </html>
Modal com mendsagem
Olá estou tentando colocar dentro de um modal mas não está funcionando. Pode me ajudar? <script type="text/javascript"> $(function () { $("#dialog-confirm").hide(); $("#btnDelete").click(function () { $("#dialog-confirm").dialog({ resizable: false, height: 250, width: 500, modal: true, buttons: { "Delete Text": function
confusing function names !
when this line is declared loaded = inview.trigger("unveil"); $.fn.unveil = function(threshold, callback) is the above line creating a function called unveil ??? if it is than inside that function there is another function function unveil()// line 31 is it legal to delare a function with the same name inside another function ?? or is it a common programming practice ?? The full pluggin code is here : Unveil.js
dfd.resolve difficulty
in the below example what is dfd.resolve(' and '); really doing ? is it just passing values into : function fn3( n ) { $( "p" ).append( n + " 3 " + n ); } is that all its doing ?? what practical usage would such a function really have . found this example in the Jquery doc's itself . <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>on demo</title> <style> </style> <script src="js/jquery.min.js"></script> </head> <body> <script> </script>
audio link
I have built an app that requires audio content but there are 45 files which push it over the Phonegap max file size so I have tried to access them via external links in my JQuery Mobile file. These work but the page opens in the app itself with no way back to the text page. I have seen some posts on this subject but none that actually help with my situation. The code below is a typical page: <div data-role="page" id="page7" style="background-image:url(images/pageBackg.jpg)"> <div data-role="header"
How to change inputs name with each. and attr. functions?
Hi everybody, i've got form: <form action="<?php echo $url;?>" method="post"> <div class="input_fields_wrap"> <?php if ($options) { $cssPrefix = 'festi-link-builder-'; $hideRemoveButton = (count($options['linkbuilder']) <= 1) ? $cssPrefix.'hide' : ''; foreach ($options['linkbuilder'] as $key => $item) { ?> <div class="container"> <input class="LinkbuilderForWords" type="text" name="linkbuilder[<?php echo $key; ?>][word]" value="<?php echo $item['word']?>" placeholder="enter keyword" /></br> <input
how can i resolve this errors
Hello i get errors alert from firebug can you help me please ReferenceError: $ is not defined $(document).ready(function() { whmcs.js (ligne 59) ReferenceError: jQuery is not defined jQuery(document).ready(function(){ main.js (ligne 1) ReferenceError: jQuery is not defined jQuery(".domainreginput").hide();
Using .each to loop through elements
I am trying to get elements into an array from a common ID. This is my .each loop: $('*[id^="totalPrice"]').each(function() { And this is my elements that I want to loop through: <span id='totalPrice".$id."'> When I loop through, I only get one element returned. With the listing, there are 3 elements. Why is it not getting to the other two?
how to Detect Click inside iframe
Dear All My Code var iframesrc='imageeditingslider.php?id='+thisid; $('#categorylist').html( '<iframe id="datamain" src="'+iframesrc+'" width="100%" height="600" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>' ); }); This code creates a iframe. .showallediting -> contents has this class I am tried following code $('#tdatamain').contents().find(".showallediting").click(function(){ alert('clicked img');
why some times people complaints about jquery events like keyup and keydown does not work in ios8
as per my knowledge is i think jquery is interpreted language also works on abstraction layer and browser native codes.
Accordian content is blank on a mobile but works fine on PC browsers
Hello, I am having a strange issue with the jQuery (themeroller) accordian it is working just fine on a desktop browsers (chrome, IE, FF, Safari) but trying it on my Android phone (S3), produces blank content in some of the panels? or the content will show sporadically. I'm confused why this is. Is it a bug that accordians produce or am I missing some code that may be needed? The 3 pages that the accordian's are on are here: http://www.reese-test2.co.uk/faq.php http://www.reese-test2.co.uk/news.php
Sum spans differents and individually
Hi guys I'm new on jquery. Im trying to sum the spans individually and put the result in the label totalCount. I have sucess on that but I think this code is too long and is not so good because if I have 20 sections I have to do that (jquery) 20 times:S. If you guys could help. HTML--> <div> <section class="ac-container"> <div> <input id="ac-1" name="accordion-1" type="checkbox" /> <label for="ac-1">09:00 - (<span id="totalCount"></span> places)</label>
how to create user interface(ui for e-learning) form scratch?
Hi to All, Please guide me, i am new bee here. Regards. Prafull.
Show/hide panel help if possible
Hello all I am new to web design and i'm trying to build personal website. Now i'm trying to do something that is in my head and see jQuery and javascript could maybe solve my problem but i'm stacked now. I would like on one of my websites to have few panels, but i want only one panel i click on to open and not all like in mine. I know my code like this is problem and i'm asking someone to help me if its possible to open and show/hide only one i clicked on (it could be some other way like show/hide
event Keyword .. what does it really do ? why is it used in Jquery .
Picked this example from the Jquery Docs of on function : What really would happen without the event keyword(Marked in red) in the code below : $( "p" ).on( "myCustomEvent", function( event, myName ) { $( this ).text( myName + ", hi there!" ); $( "span" ).css( "opacity", 1 ).text( "myName = " + myName ).fadeIn( 30 ).fadeOut( 1000 ); }); $( "button" ).click(function () { $( "p" ).trigger( "myCustomEvent", [ "John" ] ); });got the example from here : On Function
understanding the return .
what does the return statement really say ? $( "li" ).click(function (e){ $(this).filter(function( index ) { return $( "strong", this ).length === 1; }) .addClass('me'); }); does it read as the following ?? if ($( "strong", this ).length === 1){ return true ; }else { return false ; } also why the "index" parameter on the filter function ??
.on not working.. and if i change the sequence , the other code is not working
Dear All <script type="text/javascript"> $(document).ready(function() { $('#searchtable tr').hover(function() { $(this).addClass('hover'); }, function() { $(this).removeClass('hover'); }); ///////////////////////////////////////////// $('[id^="fname"]').click(function() { var thisid=this.id; alert(thisid); }); ///////////////////////////////////////////// $('[id^="ob"]').click(function() { var thisid=this.id; var recid=thisid.split('ob'); var url= "officebearerdivfill.php"; data = { id:
Click div to uncheck to hide on results filter
We have form that have checkboxs with filter results check it http://jsfiddle.net/ag263ms9/ when uncheck input its values removed from search filter div, But although we created div that clicked to uncheck checkbox but filter result not effected we need when click div it's do same effect like unchecked do can you help Jquery $(document).ready(function () { $(':checkbox').click(function() { if($(':checkbox:checked').length > 3){ alert('you can not check more than 3 checkboxes'); $(this).prop('checked',false);
[jQuery] Just started and I'm stuck
Hello I just started with jQuery and I'm stuck I'm trying to script the jquery code in a .js file but it doesn't work I think somthing is wrong with my code but I'm not sure forgive me if this isn't the right post format. html code: <html> <head> <link rel="stylesheet" type="text/css" href="style.css"> <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.1.min.js"></script> <script type="text/javascript" src="script.js"></script> </head> <body> javascript: $(document).ready(function(){
Mostrar a data através do botão JQuery
<script type="text/javascript"> $(document).ready(function () { var data = new Date(); var vMensagemBox; if (data.getDate() <= 21) { data.moveToLastDayOfMonth(); vMensagemBox = "O final de vigência do produto [Saúde], caso confirmada exclusão será [" + data.toString("d/M/yyyy") + "]."; } else { data.add({ months: 1 }); data.moveToLastDayOfMonth(); vMensagemBox = "O final de vigência
Cascade two dropdowns
Hello, I am trying to cascade two dropdowns in html5. There seems to be a problem with $.getJSON but have been unable to figure it out:- <script> alert('a'); $(function () { alert('b'); var empNmeSel = $('#dlEmpNme'); alert('c'); empNmeSel.attr('disabled', true); alert('d'); $('#dlRole').change(function () { alert('e'); var roleSel = $(this).val();
"full stack" developers
The greatest demand for web developers seems to be for "full stack" developers. I am kind confused for this terminology please anybody can explain it to me .What is the meaning of "full stack" developers thanks
Sliding images
Hello, I'm new to jQuery but I am eager to learn. I would like to design my own website and I would like to add a slider at the top of my website for some images I have. I have seen a couple that I like http://www.cfbnj.org http://www.zenoobi.com/ http://webdesignersadelaide.com http://www.sydney.com/. I would just like to know are those image scroller things a jQuery thing or are they something else?
Problem understanding return
guys check out this fiddle : Fiddle its uses the filter function and the return statement , what i don't understand is the use of the return statement , whom is it returning what ?? The HTML : <ul>
<li><strong>list</strong> item 1 - one strong tag</li>
<li><strong>list</strong> item <strong>2</strong> -
two <span>strong tags</span></li>
<li>list item 3</li>
<li>list item 4</li>
<li>list item 5</li>
<li>list item 6</li>
</ul> and the Jquery code $(document).ready(function(){
$(
jQuery Comment Box Question
So, I want to make a very basic and generic comment box in jQuery and HTML. I was wondering if I could use the appendTo(); method to do so. So here is my idea: So, I make a new <li> element with the .appendTo() $('.btn').click(function() { $('<li>').text().appendTo(); }) After, in the text(), I add inputs from my HTML form. (How do I do that? Use a selector for a form with an input?) [Also, I have the btn class] It then appends to a container containing the comments. Is this possible?
Saving Indicator
Hello everyone. Trying to figure out the best way to indicate a save function has been called and non obtrusively let the end user know (think Google docs 'Saved at 5:31 am' type of thing) for our app ShiftZen.com . Part of the trick is that it is inside of a .net user control. Any advice before I start to tackle? Thanks! Peter
How to find the column in a table?
I am using the following code to locate a column in a table. However, some rows in the column is working and some is not while I am hovering my mouse over that column. Why is it so? $(document).ready(function() { $( "#table_grid_W1269_0 td:nth-child(3)" ).click(function(e) { var facilityRollup= $(e.target); var facilityRollaupName = facilityRollup.html(); var url = './Main.aspx?evt=2048001&src=Main.aspx.2048001&documentID=BC42714F462642081F0A20BCF456405A&promptAnswerMode=2&valuePromptAnswers='
Textarea value is always null or empty?
<div id="send-complains-to-reporter" title="Изпращане на известие" style="display: none;"> <div class="col-xs-8"> <div class="form-group"><input type="text" class="form-control" name="reporter_contact_email" value="<?=$oRow->reporter_mail; ?>" > </div> </div> <div class="col-xs-4"> <div class="form-group"><input
jQuery.isPlainObject() and JSON.stringify()
jQuery.isPlainObject() and JSON.stringify( ) well my question is , when would you as a developer really decide to use the above two functions ?? i am still reading about these two functions and its a bit confusing , but just in a very general sense , when do such functions get used ??
Table generation
My goal is to be able to click on a button and create a text with inside a table tag that essentially says <tr><td>text</td></tr> But when ever I try to make the code I cant seem to get it right. I have tried .appened(), . write(), ect but I still can't seem to get it right. Is there a road you can set me on to maybe figure this out?
Quick Question – Please Help
I have a quick question regarding Jquery and I was hoping that someone here could help me or at least point me at the right place to find help. If this question is in the wrong sub section of the forum please let me know and I’ll try and move it to a more appropriate area on the forum. So I recently hired a programmer to create a small program for me and upon reviewing the code it seems the Java code was copied from the Jquery.com website. The thing is I plan on using this script as part of a larger
Jquery doesn't work?
Hi everyone, i'm new in this stuff, and i can't find what is going on wrong! here are the codes: HTML : <!DOCTYPE html> <html> <head> <title>¡Mira esto!</title> <link rel='stylesheet' type='text/css' href='stylesheet.css'/> <script type='text/javascript' src='script.js'></script> </head> <body> <div></div> <div></div> <div></div> <div></div> </body> </html> CSS: div { height: 100px; width: 100px; background-color: #4ECDC4; border-radius:
jqQuery Toggle with class?
<body> <h3 class="panel-button">Toggle 'em</h3> <div class="panel-content" style="display: none">Hiya<br> Such interesting text, eh?</div> <script> $( "h3" ).click(function() { $( "panel-content" ).toggle( "slow" ); }); </script> Thats my code (without including jQuery in head. It don't work yet,
Jquery problem?
Hi! I'm not sure if i'm in the right place for my question but i still try (i'm really new in coding) I bought this template http://ivang-design.com/hypnos/video-dark/ and i'm almost done with editing but i have a final issue with my portfolio / work section. When i deploy my version on a test adress (https://floating-retreat-7474.herokuapp.com/) the projects pages wont open and bug pretty badly as you can see. When inspecting the code with Chrome there seems to be a problem with jquery.js but
jQuery iterator to construct array
Hi, I need an example of array of objects for jQuery iterator that would produce the following result with test being a string variable that can be applied to thumbnail, preview, original, and possibly title. What I want is to repeatedly construct an array objects through a .each loop. I only need one option but since it is linked with ',' I included it in. I am new to jQuery. var options = { firstImageIndex: 5, borderWeight: 4 },
Can anyone help me with scrolling in different pages? [Resolved]
Hello, I have a website with 3 pages (index, outros and vidaprev) and all the pages have the same menu. The menu has 6 links, 3 of them send to the index, 1 call a sb, and the other 2 are links for the other pages (outros and vidaprev) i need to create a script to make this: - If i'm in the outros or vidaprev page and click on "seguro automovel" will redirect to the index and HIDE "cont-2" div and SHOW "cont-1" div. - if i'm in the outros or vidaprev page and click on "dicas" or "agende sua ligação"
Retain mouse hover (mouse enter) effect after click
Dear All I am styruggling with http://webvikas.net.in/befaft/ba.php Please Click onn any circle to proceed You will find 3 small circles on left hand side mouseenter effect on small circles and ouseleave effect is workig fine (makes that portion reg) I want to retain mouseenter effect after mouse click currently on click , the red area fade-outs when mouse is out of that area pls pls pls help My javascript $('.basesmall').mouseenter(function(){ // small cricel click start $(this).find('img').stop().fadeTo('slow',
Button script help
Have a button with id = CLOSE <li><a input type="button" value="Close Net" id="CLOSE"></a></li> Script to run a function when the button is clicked <script> $(function () { $("CLOSE").click(function () { // do some stuff )}}; </script> The problem is that the function with // do some stuff is executed whenever the page loads. What am I doing wrong here? Thanks for any help.
Next Page