HI,
I am making my own scroll bar. in which i made this code below i pasted. i am getting the issue from this code.
i) in the first time i am pressing "#scroller" that works fine.
ii) in case of second or other time when i am enter into "#scroller" itself, i am getting the alert "hi", instead of i am pressing the "#scroller", i know...
Hi all,
I am learning JQuery and writing a simple data validation for the two fields in
a HTML form:
<FORM name="addpost" id="addpost" method="post" action="/add">
<TABLE border=0 width="100%">
<TR>
<TD>Topic</TD>
<TD>
<DIV id="topic">
<INPUT type=text name=...
Jquery Code:
$(function() {
$("#submit").click(function(){
var pilaMan = 2;
for (i=0; i < pilaMan; i++)
{
$('#dialog_link').dialog({
modal: false,
autoOpen: false,
width: 800,
height: 300,
buttons: {
"Ok": function() {
...
Hi
I'm developing a new site, and in here it's possible for the user to type in a price in a input-textfield. So what I need is some jQuery-code to transforn the typed in price. This means, that when a user types in "1000", the vissible text in the input field shall automatically be transformed to "1.000" - with a period. And if they ty...
Is there a way to check if a browser is currently in fullscreen mode (after the user pressed f11)?
Something like:
if (window.fullscreen) {
// it's fullscreen!
}
else {
// not fs!
}
Thanks.
Steerpike's answer is pretty good, but my comment:
Thanks a lot, but this answer is not
sufficient for FF. In Chrome I can set
a sma...
I'm having an issue with two jQuery calls. The first is a "load" that retrieves HTML and displays it on the page (it does include some Javascript and CSS in the code that is returned). The second is a "getJSON" that returns JSON - the JSON returned is valid.
Everything works fine in every other browser I've tried - except Chrome for e...
Hi all
I have a HTML table like below:
ColA ColB ColC ColD ColE ColF
Checked AAAA BBBB CCCC DDDD EEEE
Unchecked AAAA BBBB CCCC DDDD EEEE
Checked AAAA BBBB CCCC DDDD EEEE
Checked AAAA BBBB CCCC DDDD EEEE
Unchecked AAAA BBBB CCCC DDDD EEEE
Checked AAAA BBBB CCCC DDDD EEEE
Checked AAAA BBBB CCCC DDDD EEEE
...
Hello All
How can I get day of given date using jQuery? In c# I do it like this
if(MyDate.DayOfWeek == DayOfWeek.Sunday)
How can i do this in jQuery?
...
HTML:
<html>
<body>
<textarea>Original Text</textarea>
<button>Replace</button>
</body>
</html>
jQuery:
$(function() {
$('button').click(function () {
$('body').html($('body').html().replace('Original','New'));
});
});
http://jsfiddle.net/r7MgY/
...
Thanks for checking out my problem... I'm having trouble submitting a login form via Ajax for a php script to run and return a new set of html items which will be replacing the HTML in #userlinks.... heres what I have so far
$("#login_form").submit(function() { return false; });
$('#login_button').click(function(event) {
$form = $(...
Hi,
Another jqGrid question: Is it possible to disable editing for certain cells in a column that is marked as editable?
From what I've seen, the only options are "all cells are editable" or "no cells are editable".
Is there a way to work around this?
Thanks,
Cosmin
...
Hi there,
I was recently looking at this memory leak tool sIEve: http://home.orange.nl/jsrosman/
So I decided to test out the tool by creating a main page that will open up a popup window.
I started by creating 3 pages: index.html, page1.html and page2.html, the index.html page will open a child window (popup) linking to page1.html. Pa...
I have a php function which inserts a searchbar into each page on a website.
The site checks to see if the user has javascript enabled and if they do it inserts some jquery ajax stuff to link select boxes (instead of using it's fallback onchange="form.submit()").
$.getJSON works perfectly for me in other browsers except in IE, if I do ...
setTimeout stack over flow..
$(document).ready(function(){
counterFN();
var theCounter = 1;
function counterFN()
{
$(".searchInput").val(theCounter);
theCounter++;
setTimeout(counter...
i have two select box, now what i want is
i want to move option from one select box to another via a button
below is my code:
php
<table>
<tr>
<td>
<select size="5" id="suppliedMovies" name="suppliedMovies">
<option selected="selected" value="">Select Movie</option>
<option val...
My Html mark-up is somthing like this
<div>
<div></div>
<div></div>
<div></div>
<div class="last">
<div class="a">
<div class="b">
<div class="c"></div>
</div>
</div>
</div>
</div>
Want to add a extra class in <div class="last">,<div cla...
i have list of dynamic generated buttons and id is generated on run time. how can is get id of clicked button using JQuery.
Here is js code
var btn = " <input type='button' id='btnDel' value='Delete' />";
$("#metainfo").append(txt); //set value of
$("#btnDel").attr("id", "btnDel" + $("#hid").attr("value"));
...
Hello,
I'm creating my first web application and I'm really confused as to what technology to go for.
My application needs to look serious (like an application), it doesn't need many colorful graphical interfaces. It only needs a toolbar, a tab bar, a split panel (preferably 3 columns), an easily-formatable text field, and a status bar...
Hi everyone
I'm currently trying to create a "mega" dropout menu using JQuery but have encountered an issue I'm yet to be able to resolve. At the moment I have the following HTML structure:
<div id="TopNav" class="grid_16">
<ul class="cmsListMenuUL level0" id="TopNavMenu">
<li class="cmsListMenuLIcmsListMenuLI highlightedL...
In jquery an event hadler's binding is the event generating DOM element (this points to the dom element).
In prototype to change the binding of an event handler one can use the bindAsEventListener function;
How can I access both the instance and the DOM element from a event handler?
Similar to http://stackoverflow.com/questions/117361/ho...