16 Agustus 2011

JQUERY PRICE FORMAT FOR THE WEBSITE BARGAINING (DIY)

Here is a tutorial how to make the system bargain on auction websites with JQuery Price Format. on our auction site requires bargaining mechanism uses javascript. Using javascriptbe an option for client-based. The goal for the website is more flexible.

On the website, I use some object. Among radio buttons, text fields, and buttons.Served as a multiple radio buttons in the bargaining. Button is used to raise andlower the bids bidding. And text fields are used to display the results of bargaining.


On the website, I use some object. Among radio buttons, text fields, and buttons.Served as a multiple radio buttons in the bargaining. Button is used to raise andlower the bids bidding. And text fields are used to display the results of bargaining.



Rp. 100.000,-
Rp. 50.000,-
Rp. 20.000,-
Rp. 10.000,-
Rp. 5.000,-
Rp. 2.500,-

above code is used to display a multiple of bargaining






above code is used to increase supply and decrease in supply. And text fields todisplay the bid price. There are two text fields, the first type and the second type ofhidden text. Hidden, used to store the results of bidding. And the type of text used todisplay the bidding.


Javascript JQUERY above is used to perform activities of bid. Where the bid value is takenfrom the textfield with type hidden, and hidden textfield with the type will be used to display data from the bargaining.
$("#total").val(jumlah).priceFormat({
		prefix: 'Rp ',
		centsLimit: 0,
		thousandsSeparator: '.'
	});