I've got this almost working but can't quite complete it. I have a jQuery datepicker on a reservation page that feeds into an "Arrival" field as mm/dd/yyyy. I a
In JavaScript how do you make it so that a function is ready to change at any moment? I want to make it so that when someone selects a different option from a d
I have some historical code that's using event.returnValue = false to prevent CR from causing a post back in an ASP.NET via the onkeydown event: onkeydown = "if
I have a form with two inputs: <input type="text" name="keyword" value="Search" onfocus="wipe(this)"/> <input type="text" name="city" value="City" onf
I have a form with two inputs: <input type="text" name="keyword" value="Search" onfocus="wipe(this)"/> <input type="text" name="city" value="City" onf
I have been battling for the past two days with the evil onbeforeunload function in JavaScript. I have a function that warns the user when they are about to clo
I'm after what seems to me to be a straightforward pattern for handling page refreshes when I've got a drop-down that reacts to the onchange event. I've used th
-------------------------------------------------- |No|Style No|Item Desc|Qty|Unit Price|Total Price| ----------------------------------------------
I have a form and I do JavaScript validation function onsubmit: <form method="post" onsubmit="return validateForm(this.id)" action="<?php echo $PHP_SELF;
I have many functions written in JavaScript such as userName(), password() etc. But on submitting on the form, I have a single function return formValidator();.
I am using this code for preventing user to leave the page if there is any changes on the form in SharePoint FarmApplication <script> var formDirty
With the following code: <head> <script type="text/javascript"> function popupMsg(msg) { alert(msg); } </script> </head> <body>
I want to fire a click event during the onsubmit of form. In button click event I used a url which it has to redirect. I don't want to use the form's 'action" t
I have this on a page: <p class="test" style="width: 300px" title="intro">Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh
<?=form_open('blog/register');?> <table> <tr> <td><label for="register_name">User
Can anybody give me the syntax on how could I determine where the onclick event was called. I want to change the h4 content depending on where the onclick came
I'm trying to figure out what could be causing a problem in IE9 on a production machine. We have a <select> combo box with an inline change handler (I'm a
I have a web page which has a form at the top and a table at the bottom. The form allows users to submit info and also upload an image, the form's target is the
I want to cancel inline onclick event <p id="demo" onclick="alert(1234)"></p> in certain condition, so I am using a global onclick event to conditi
I was wondering how we can make a HTML element like <div> or <p> tag element resizable when clicked using pure JavaScript, not the jQuery library or