Archive

Posts Tagged ‘Jquery’

JQuery: Ajax Example of Select Values Filled Dynamically

Aug 13th, 2009

This Ajax example will give you an idea of, how to present users a dynamic data based on input using Ajax method. I will use jQuery JavaScript library for this linked select lists example. Dynamically Populate Select List by Ajax is an example using plain JavaScript code. Suppose a user has selected a type [...]

Javascript: Remove / Delete a Select Option from List

Aug 9th, 2008

To remove the Options from Select list, you need to assign NULL value to the option you want to delete. Or, you can use function remove() on select object.
Solution here are using simple JavaScript. After this, you will find solution using JQuery.

<script type=”text/javascript”>
function remSelOpt(inp1, sel1)
{
len1 = sel1.options.length;
for (i=0;i<len1 ;i++ )
{
if [...]

HTML Code Preview Script using JavaScript and JQuery

May 30th, 2007

Sometimes you may want to see online preview of your HTML code.
So that you can evaluate your HTML code for correctness and take corrective action if needed.
Here this little script, both in simple JavaScript and in JQuery, will provide you evaluation facility for your HTML code.
You will enter your HTML code in upper textarea box. [...]