14,051 Topics

Member Avatar for
Member Avatar for divyakrishnan

Hi How to get the Id of an element after firing the event from another element which is located before first element. Actually I have dynamically created <select> and a <span>. I want to get the id of the <span>,after the onchange event of the <select> Span is located after …

Member Avatar for Taywin
0
96
Member Avatar for infoitmanoj

<script> var mins = 0.10; var secs = mins * 60; function countdown() { setTimeout('Decrement()',1000); } function Decrement() { if (document.getElementById) { minutes = document.getElementById("minutes"); seconds = document.getElementById("seconds"); // if less than a minute remaining if (seconds < 59) { seconds.value = secs; } else { minutes.value = getminutes(); seconds.value …

Member Avatar for infoitmanoj
0
153
Member Avatar for divyakrishnan

Hi I want to assign a smarty array to Javascript array I used the following code <script type="text/javascript"> var arr = {/literal}{$a.ins_status|@json_encode}{literal}; alert(arr); </script> But the arrray is showing as Null

Member Avatar for veedeoo
0
2K
Member Avatar for RikTelner

Is there possibility to select every table-cell, image and text within ID? I plan to make them all smaller using `.animate();` problem with it, I need to select all these elements first without manually doing it (it has to automatized) process.

Member Avatar for JorgeM
0
115
Member Avatar for arafath077

hi. Im devoloping website. I using [this theme for devoloping](soaptheme.com/html/travelo/). and validate the field using [bootstrapvalidator](http://bootstrapvalidator.com/) .but i cant validate datepicker filed.i tryied [this way](http://bootstrapvalidator.com/validators/date/#date-picker-example) its not working. can anyone help me to solve this problem.

0
103
Member Avatar for John_74

re = /^(\d{1,2})-(\d{1,2})-(\d{4})*$/; if((form.dob.value="") || (!re.test(form.dob.value))) { alert("Error:enter Valid date of birth!"); form.dob.focus(); form.dob.style.background = "yellow"; return false; }Inline Code Example Here

Member Avatar for John_74
0
76
Member Avatar for Koh_1

Hi there, May I know if i want to filter 3 column, for example Column A, Column B and Column C When user select Column A, the mysql query will select the data based on the Column A value. When user continue select Column B, the msql query will select …

Member Avatar for AleMonteiro
0
203
Member Avatar for John_74

<script type='text/javascript' language="javascript"> function validate() { var error=0; var name=document.getElementById("name"); var checkname =/^[a-zA-Z]+$/; var email= document.getElementById("email"); var emailcheck = /^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])+([a-zA-Z])+/; var re_pass; if (name.value == "") { name.style.background = 'Yellow'; error = 1; alert('enter user name!'); } else if ((name.value.length < 5) || (name.value.length > 15)) { name.style.background = 'Yellow'; …

Member Avatar for Dervish1
0
238
Member Avatar for safi.najjar1

Hello Guys, I coded the following and worked 100% perfectly but I want to do it ajaxly ! how to make all of this sending by ajax with animation(fadeIn,fadeOut) this my code: product.php url: product.php?id=4 <div id="product_page_desc"> <?php foreach ($products as $info) { ?> <div style="background:#fff;box-shadow: 0 0 1px #cd9db1;float: …

Member Avatar for matrixdevuk
0
501
Member Avatar for Himanshu Chawla

<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <link href="css/bootstrap.min.css" rel="stylesheet" media="screen"/> <link href="css/datepicker.css" rel="stylesheet" /> <script src="js/bootstrap.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script src="js/bootstrap-datepicker.js"></script> <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> <script src="js/JavaScript.js"></script> <script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <title></title> </head> <body> <div> <form class="form-horizontal" id="form1" runat="server"> <fieldset> <!-- Form Name --> <legend>Enter Your Details</legend> <div class="control-group"> <label class="control-label input-xlarge" for="Status">Employment …

0
161
Member Avatar for realmattbender

I am looking to do exactly what the title states. I have a radio field that i would like to persist across a page refresh. The following is my code: <div id="RadioFields"> <input type="radio" name="country" value="usa" id="usa" />USA <input type="radio" name="country" value="foreign" id="foreign" />Foreign Country <div id="countryerror"> <div class="asterisk" runat="server"> …

Member Avatar for Taywin
0
246
Member Avatar for Priti_P

Hello, I have created text fields <fieldset class="step"> <p> <label for="Certifications">Certifications:</label><br> <label style="margin-left: -125px !important;"> <div id='test_certify' style="display:table;"> <table id="mytable" width="5%"> <tbody> <tr> <td align='middle'>Certification Name</td> <td>Pass Out Year</td> </tr> <? $tr_id=1; ?> <tr id=<?echo $tr_id; ?> > <td> <? echo CHtml::activeTextField(EmpCertificates::model(),'Name',array('id'=>'C_name-'.$tr_id,)); ?> <td> <td> <input for date> </td> </tr> …

Member Avatar for Airshow
0
151
Member Avatar for Siberian

Argh, I can't see the error in this code ? [[Link](http://jsfiddle.net/WildWind/D8tTE/)]

Member Avatar for Siberian
0
169
Member Avatar for dhani09

I''m trying to process a form without page reload using jQuery post as shown below: <script type="text/javascript"> $('#settingsForm').submit( function(){ $('input[type=submit]', this).attr('disabled', 'disabled ');}); function scheck(){ var oldanswer = $("#oldanswer"); var newquestion = $("#newquestion"); var newanswer = $("#newanswer"); var url = "settingsupdate.php"; //This part of the code works fine. Errors are …

Member Avatar for dhani09
0
269
Member Avatar for ocw91

Hi, i was trying to call JQuery function from my backend C#. the JQuery function testtesttest(testurl,counter) { $("'#imgThumbnail"+counter+"').attr('ImageURL','"+testurl+"'); $('#imgThumbnail'+counter+').show(); } backend C# code int counter = 0; while(counter<list.Count) { int imgcounter = 1; string testurl = list[counter]; ClientScript.RegisterStartupScript(this.GetType(), "sc", "testtesttest("+testurl+", "+counter+")", true); imgcounter++; counter++; } I trying to pass 2 …

Member Avatar for ocw91
0
175
Member Avatar for dwlamb

After writing out that which appears below I realise help I am asking for might be outside the scope of support for Owl Carousel. The plug-in itself is working as it should. It is functions within this plug-in that I want to emulate for the rest of the content that …

Member Avatar for Airshow
0
251
Member Avatar for Priti_P

Hello, I have written an ajax call: $.ajax({ url:'summary_page_data', type:'POST', data:name={}, context: this, dataType: 'json', success:function(data_){ if(data_!= -1) { data=JSON.stringify(data_); alert(data); $('#write_table').append('<p>Summary:<br><br>[FORM TABLE HERE]</p>'); } else alert("outside") } }); In this "summary_page_data" i have written `echo json_encode($skills);` SO it is returning array. when i alert the return data, it shows …

Member Avatar for Airshow
0
233
Member Avatar for safi.najjar1

Hello guys I have a problem with jquery this my code: var count = $(".count"); $('.minus').on('click', function () { if (count.val() > 1) count.val(parseInt($(".count").val()) - 1); }); $('.plus').on('click', function () { count.val(parseInt($(".count").val()) + 1); }); and HTML code: for first product and other products: <td> <input type="button" id="minusInCart" class="minus" value="-"> …

Member Avatar for Airshow
0
2K
Member Avatar for Nishant80
Member Avatar for murali2489

Hi All, My application works fine in ie 8 but while running the application in IE 11, at first it loads fine. But after sometime when i click on any button or any links in the page, I am getting an error stating ** No action exist for view Null …

0
119
Member Avatar for vuyiswamb

Good Day all i am reluctantly maintaining a Classic Asp application that will be re-written in few months to come. i have an issue where i have a Code like this if(document.frmEntry.optMethod != "undefined") { if (document.frmEntry.optMethod.selectedIndex == 0) { strPrompt=strPrompt+'Please specify the Valuation Method\n'; if ( objFocus == null …

Member Avatar for Airshow
0
169
Member Avatar for Priti_P

Hello, I have created sliding fieldsets using javascripts. in it, I have created fieldsets using for loop. Now I want , while I click on NEXT of one fieldset , then whatever input type fields are available on that fieldset , I should get them. I want to store it …

Member Avatar for Airshow
0
285
Member Avatar for mrvijayakumar

I want to sort four dimensional array based on 0th index by using following method, Here is the code: var main_arr = [ [] ]; var hdnFromValues = [11,16,12,17,14,18,15]; var hdnToValues = [12,17,13,18,15,19,16]; var hdnSPIDs = [11,12,13,14,0,0,0]; var hdnFlag = [D,E,E,D,A,A,A]; for (var j = 0; j < hdnFromValues.length; j++) …

Member Avatar for Airshow
0
306
Member Avatar for Himanshu Chawla

**Hello Actually i want to make dropdown list dynamically in C# . So that in that dropdown list when i enter some value it should retrieve value from database and also when enter any alphabet, so at that time it show all the names with that alphabet in the starting …

Member Avatar for Taywin
0
200
Member Avatar for Priti_P

Hello, I have used for loop to create checkboxes. and on each of them i want to know its checked or unchecked. code is as below: foreach ($All_skill_type as $All_skill_type_) { $each_skill_type=$All_skill_type_ -> skill_type ; // find skill_type_id and serach Skills for that skill_type $skill_type_id=helpers::getSkillTypeId($each_skill_type); $skills_of_skill_type=helpers::getskills($skill_type_id); ?> <fieldset class="step"> <p> …

Member Avatar for Priti_P
0
142
Member Avatar for ultmt.punisher

I am creating chat program in php using jquery, ajax and MySQL. and my problem how to auto scroll down when div is overflowed. like when user enter new line it will goes down and I want to auto scroll down when new messages appeares down. and I am trying …

Member Avatar for ultmt.punisher
0
6K
Member Avatar for Siberian

I know I can write Javascript to do this. Doesn't jQuery have a close parameter, there is nothing listing in the API ? I want to close a div, not have any effect as my current script. $('.close').click(function(c){ $(this).fadeOut('50'); });

Member Avatar for Siberian
0
88
Member Avatar for Siberian

This is a follow up to another thread, lets say the other thread didn't occur, kapeesh :) ! This [code](http://jsfiddle.net/WildWind/3AXB9/) is telling me I'm missing a semi-colon, I can't see where it's missing the code looks clean to me ?

Member Avatar for Siberian
0
194
Member Avatar for itisnot_me

Hey all, I have done a lot of research on this subject but cannot seem to get this to work again. I recently went from tinymce 3 to 4 and it seems that its kind of broken with jquery ui tabs. I have one main textarea that shows the editor …

Member Avatar for itisnot_me
0
182
Member Avatar for ultmt.punisher

I have created a chat program that is working fine on localhost but in the live server its not working fine, its sent response or text very late, So I don't know what code should I post here to get know whats the problem or how it will be solved. …

Member Avatar for diafol
0
2K

The End.