Prasad Bolla's SharePoint Blog

Click Here to go through the Interesting posts within my Blog.

Click Here to go through the new posts in my blog.

Wednesday, March 09, 2016

Validate People Picker and TextBox using Jquery


//TextBox
if($("#ctl00_m_g_1908d4f6_cfae_448c_ab52_87ffc22498be_ctl00_ctl05_ctl00_ctl00_ctl00_ctl04_ctl00_ctl00_TextField").val()=="")
        {
            alert('Please enter Title');
            return false;
        }
       
       
    //People Picker    if($("#ctl00_m_g_1908d4f6_cfae_448c_ab52_87ffc22498be_ctl00_ctl05_ctl05_ctl00_ctl00_ctl04_ctl00_ctl00_UserField_upLevelDiv").text()=="")
        {
            alert('Please enter Username');
            return false;
        }

Monday, March 07, 2016

sample jquery multiple lookup

var strADDButton="ctl00_m_g_1908d4f6_cfae_448c_ab52_87ffc22498be_ctl00_ctl05_ctl01_ctl00_ctl00_ctl04_ctl00_ctl00_MultiLookupPicker_m";
//alert('Test');
function GipAddSelectedItems(strADDButton)
{
    alert('Test Add Button');
}

GipAddSelectedItems(strADDButton);

looping through select option values using array with jquery

var foo = [];
$('#multiple :selected').each(function(i, selected){
  foo[i] = $(selected).text();
});

Wednesday, March 02, 2016

How to go to Print$ in Windows Server 2012 R2

  1. Login into the Box.
  2. Click on Server Manager.
  3. In server manager left hand side you will see file and storage services.
  4. Click on it.
  5. In that click on shares.
  6. There you will find Print$ in Windows Server 2012 Server.