Archive for the ‘JavaScript’ Category
Zen Coding — a tremendous way of writing HTML and CSS code
Zen Coding is a set of plug-ins for text editors that allow for high-speed coding and editing in HTML, XML, XSL, and other structured code formats. The tools have been incorporated into a number of high-profile text editors, some plug-ins developed by the Zen Coding team and others implemented independently. However, Zen Coding is primarily independent from any text editor, as the engine works directly with text rather than with any particular software.
Expand Abbreviations
Zen...
Set default image or text in html input box
Form submit by ajax/jquery
$(function(){
$.ajax({
type: "post",
url:example.php,
data: $("#user-form").serializeArray(),
success: function(response){
alert(response);
$("#response-div").html(response);
}
});
});
[...]
Top jquery lightbox scripts recent most beautiful
Onclick remove deafult data or value from input box
By using the OnClick event on a text box element we can remove the default text from a input box. Say in Facebook login area you will see email and password input box. By default you will see email text in a input box. Whenever you click on it, it just vanishes and give you the chance to write your email address there.
We will add an OnClick event on the input and then by calling a different function we will make this thing happen
Here is the code.
<form name=form1...