Skip to content
Advertisement

Tag: jquery

InfoWindow & GeoCoder

I have an issue with getting longitude and latitude values geocoded and then display the relevant address in an info window. I have tried multiple ways without success, however I must admit that I am not so familiar with javascript. I am continuously getting back as value : “undefined”. Here is a snippet of my code showing the main components:

How to create a timer

I have a $dbSessionDuration variable where by using mysqli, it is able to bind the result of data from the query into this variable. The $dbSessionDuration variable holds time so the variable has a time format as below: 01:30:10 Now that means 1 hour 30 mins and 10 seconds. What I want to do is display $dbSessionDuration value in a

Javascript/jQuery – Display inches in feet and inches

I’m making a BMI calculator (see JSFiddle – http://jsfiddle.net/b5ww2/) and I want the height in inches to display in feet and inches. I also want the weight in pounds to be displayed in stones and pounds. This is the code I’m using to convert the slider value to cm and inches: My js knowledge isn’t great – especially when it

Bypassing transition and changing a property instantly

I want to bypass CSS transition and change a property instantly. I tried to set transition-duration to 0s before the change and then set transition-duration back to its original value: Fiddle This obviously doesn’t work. I understand that the spec does not define that behavior for this: Since this specification does not define when computed values change, and thus what

Add st, nd, rd and th (ordinal) suffix to a number

I would like to dynamically generate a string of text based on a current day. So, for example, if it is day 1 then I would like my code to generate = “Its the <dynamic>1*<dynamic string>st</dynamic string>*</dynamic>”. There are 12 days in total so I have done the following: I’ve set up a for loop which loops through the 12

Edit textbox and submit in HTML/ JavaScript [closed]

It’s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago. I have a textbox in my HTML file. It is basically a comment

How can i refresh form after submit?

i have form like for form submit i have used like Here reset is not working. Any problem with reset i am not getting. After form submit, i want to refresh form with db values (to display values selected just now). how can i refresh page after submit or either div refresh. Answer reloads the page by setting the href

Advertisement