Usage of for loop in Jquery syntax with example

Here am going to explain the use of for loop in JQuery with an example

Add a page ajax_angular_view.php with response format



 <div><input id="update_company_name_comapny1" type="text" value="" /></div>
<div><input id="update_company_name_comapny2" type="text" value="" /></div>
<div><input id="update_company_name_comapny3" type="text" value="" /></div>
var company_id=1
                url: "ajax_angular_view.php?action=view_company_info_by_id&company_id="+company_id,
                type: "post",
                success: function(data) {
                    var obj = JSON.parse(data);
		for(var k in obj) {

How to add Auto suggestion in Jquery by customer name for customer id

T o add Auto suggestion in jquery for customer name and customer id

    source : function (request, response) {
        $.getJSON("ajax_angular_view.php?action=view_customers", {
            term: request.term
        }, function(data) {                     
            var array = data.error ? [] : $.map(data.Clist, function(m) {
                return {
                    value: m.value
    },   select: function (event, ui) {
        $("#customer_name").val(ui.item.label); // display the selected text
        $("#user_id").val(ui.item.value); // save selected id to hidden input
        return false;
,    focus: function(event, ui) {

ajax_angular_view.php?action=view_customers Result should be

{“Clist”:[{“name”:”Hareram Sharma”,”value”:”1″},{“name”:”Jitender”,”value”:”2″},{“name”:”soni”,”value”:”3″}]}

What are the possible project topics for computer science student?

if you ask What are the possible project topics for computer science student most of them suggest Attendance Management System,Library Management System, Hospital Management System etc .When you took any of this topics and search in google you will get ready made code so it is easy for you just download and submit.if you are doing your computer science course for getting challenging job means you should not do this,compared to other technology information technology is the only technology improving in each in your project what topics you are using is nothing but what technology is important.

My personal suggestion Whatever topics you are going to choosing is nothing but what technology your going to use is important.I think next generation technology is for AI (Artificial intelligence) ,so machine learning has better role in it. better try to use language like python ,or any ML languages for developing your project. Millions of job opening are coming for machine learning experts. if you are interested in User Interface,better to include Node.js or AngularJS in your projects.

always choose simple topics but don’t forget to use modern technology to build the projects,if you need any help don’t hesitate contact me.Better luck for your future.