Posts Tagged ‘elements’

Drag and drop to list elements using Scriptaculous

Drag and drop to list elements using Scriptaculous

Drag and drop feature is a popular effect in modern website interfaces and a simple way to implement it is using Scriptaculous.

jNice, styled forms

jNice, styled forms

Create custom looking form elements, that function like normal form elements

ScrollTo | scroll overflowed elements with jQuery

ScrollTo | scroll overflowed elements with jQuery

A plugin for jQuery to scroll to a certain object in the pagejquery scroolto

jqTransform | skin your form Elements using jquery

jqTransform | skin your form Elements using jquery

jqTransform is a jQuery styling plugin wich allows you to skin form elements.skin form elements

Watermark plugin for jQuery

Watermark plugin for jQuery

New in 3.0 – Supports drag-and-drop to watermarked elements, native browser watermark support in WebKit browsers, and type=”text/password/seach” elements, in addition to textareas.sample-watermark

Dynamically Add Remove Elements using jQuery

Dynamically Add Remove Elements using jQuery

Sample code snippet for Adding and Removing the Elements dynamically using jQuery
{code type=html}

Answer Choice 1 :

{/code}

Javascript

{code type=html}
$(document).ready(function() {

$(“#addchoice”).click(function(){
//getting the current element count
var current = $(“#answercount”).val();
current = Number(++current);

//Append the html content
$(“#choiceTemplate”).append(”

Answer Choice ” + current + ” :

“);

//assign the current element count
$(“#answercount”).val(current);

return false;

});

//remove the elements
$(“#removechoice”).click(function(){

//getting the current/last element count
var current = $(“#answercount”).val();

//removing the element
$(‘#current’+current).remove();

//assign the current element count
current = Number(–current);
$(“#answercount”).val(current);
});

});

{/code}

Submitted By : Raja

Demo 

Subscribe to RSS Feed Follow Ajaxmint on Twitter!
Get Adobe Flash playerPlugin by wpburn.com wordpress themes